summaryrefslogtreecommitdiffstats
path: root/lib/blkdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/blkdev.c')
-rw-r--r--lib/blkdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/blkdev.c b/lib/blkdev.c
index f8182c0b3..a29352963 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -25,6 +25,10 @@
#include <sys/disk.h>
#endif
+#ifdef __FreeBSD_kernel__
+#include <sys/disk.h>
+#endif
+
#include "blkdev.h"
#include "c.h"
#include "linux_version.h"