diff options
Diffstat (limited to 'sysutils/diskscrub/files/extrapatch-freebsd4')
| -rw-r--r-- | sysutils/diskscrub/files/extrapatch-freebsd4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/diskscrub/files/extrapatch-freebsd4 b/sysutils/diskscrub/files/extrapatch-freebsd4 new file mode 100644 index 000000000000..a0916b57737c --- /dev/null +++ b/sysutils/diskscrub/files/extrapatch-freebsd4 @@ -0,0 +1,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 |
