--- 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 +#include + +#ifndef DIOCGMEDIASIZE +#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */ +#endif + +#include #include off_t