4425fa84da
glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1017 Signed-off-by: Alex Maclean <monkeh@monkeh.net> [refresh patches] Signed-off-by: Mathias Kresin <dev@kresin.me>
24 lines
546 B
Diff
24 lines
546 B
Diff
--- 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>
|