blob: a0916b57737c005a661e24414673a405529874f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- getsize.c.orig Thu Aug 17 05:15:45 2006
+++ getsize.c Tue Nov 28 23:00:49 2006
@@ -81,6 +81,13 @@
#elif defined(__FreeBSD__)
/* scrub-1.7 tested freebsd 5.3-RELEASE-p5 */
#include <sys/ioctl.h>
+#include <sys/queue.h>
+
+#ifndef DIOCGMEDIASIZE
+#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
+#endif
+
+#include <sys/disklabel.h>
#include <sys/disk.h>
off_t
|