aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs4/patches/180-openbsd_compat.patch
blob: 4f7afd89cc914af1e2a05a469256a651beb4892d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -32,6 +32,9 @@
 #include <stdio.h>
 #include <stddef.h>
 #include <sys/time.h>
+#if defined(__OpenBSD__)
+#include <sys/param.h>
+#endif
 #include <sys/types.h>
 #include <sys/sysmacros.h>
 #include <sys/stat.h>
--- a/squashfs-tools/unsquashfs.h
+++ b/squashfs-tools/unsquashfs.h
@@ -25,6 +25,9 @@
 #define TRUE 1
 #define FALSE 0
 #include <stdio.h>
+#if defined(__OpenBSD__)
+#include <sys/param.h>
+#endif
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdlib.h>