aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs4/patches/180-openbsd_compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/squashfs4/patches/180-openbsd_compat.patch')
-rw-r--r--tools/squashfs4/patches/180-openbsd_compat.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/squashfs4/patches/180-openbsd_compat.patch b/tools/squashfs4/patches/180-openbsd_compat.patch
new file mode 100644
index 00000000000..4f7afd89cc9
--- /dev/null
+++ b/tools/squashfs4/patches/180-openbsd_compat.patch
@@ -0,0 +1,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>