diff options
Diffstat (limited to 'futility/misc.c')
-rw-r--r-- | futility/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/misc.c b/futility/misc.c index de7db515..0c8a0e71 100644 --- a/futility/misc.c +++ b/futility/misc.c @@ -5,7 +5,7 @@ #include <assert.h> #include <errno.h> -#ifndef HAVE_MACOS +#if !defined(HAVE_MACOS) && !defined(__FreeBSD__) #include <linux/fs.h> /* For BLKGETSIZE64 */ #endif #include <stdarg.h> @@ -272,7 +272,7 @@ enum futil_file_err futil_map_file(int fd, int writeable, return FILE_ERR_STAT; } -#ifndef HAVE_MACOS +#if !defined(HAVE_MACOS) && !defined(__FreeBSD__) if (S_ISBLK(sb.st_mode)) ioctl(fd, BLKGETSIZE64, &sb.st_size); #endif |