aboutsummaryrefslogtreecommitdiffstats
path: root/tools/e2fsprogs/patches/003-openbsd-compat.patch
blob: 492b8a88608bb21d6bececd12314b2ed7c0d817e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/lib/blkid/getsize.c
+++ b/lib/blkid/getsize.c
@@ -29,6 +29,9 @@
 #include <fcntl.h>
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#ifdef __OpenBSD__
+#include <sys/dkio.h>
+#endif
 #endif
 #ifdef HAVE_LINUX_FD_H
 #include <linux/fd.h>