[source] tools/squashfs: include sysmacros.h explicitly

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 29 11:07:19 PDT 2017


mkresin pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/8406e50df540b13a43c080a304ec675bc4fc2caf

commit 8406e50df540b13a43c080a304ec675bc4fc2caf
Author: Alex Maclean <monkeh at monkeh.net>
AuthorDate: Mon Oct 23 13:47:55 2017 +0100

    tools/squashfs: include sysmacros.h explicitly
    
    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#1018
    
    Signed-off-by: Alex Maclean <monkeh at monkeh.net>
---
 tools/squashfs/patches/130-include_sysmacros.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/tools/squashfs/patches/130-include_sysmacros.patch b/tools/squashfs/patches/130-include_sysmacros.patch
new file mode 100644
index 0000000..f0149d6
--- /dev/null
+++ b/tools/squashfs/patches/130-include_sysmacros.patch
@@ -0,0 +1,20 @@
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -30,6 +30,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -25,6 +25,7 @@
+ #define FALSE 0
+ #include <stdio.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>



More information about the lede-commits mailing list