aboutsummaryrefslogtreecommitdiffstats
path: root/tools/e2fsprogs/patches/003-openbsd-compat.patch
blob: ded0ecad77fa9f382493556eeaeaf9fbee9fc97d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/lib/blkid/getsize.c
+++ b/lib/blkid/getsize.c
@@ -25,6 +25,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>
--- a/lib/quota/mkquota.c
+++ b/lib/quota/mkquota.c
@@ -8,6 +8,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdint.h>
 #include <string.h>
 #include <fcntl.h>