summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-13 14:29:58 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-13 14:40:40 -0400
commitfce1098ddbdcbbcb84bd34430de4bcad597cd8fc (patch)
tree136997c8fe6c274acdc8393c5e549fa40d2d92bf /sys-fs/squashfs-tools/files
parentsys-fs/squashfs-tools: cleanup/fix configure options (diff)
downloadgentoo-fce1098ddbdcbbcb84bd34430de4bcad597cd8fc.tar.gz
gentoo-fce1098ddbdcbbcb84bd34430de4bcad597cd8fc.tar.bz2
gentoo-fce1098ddbdcbbcb84bd34430de4bcad597cd8fc.zip
sys-fs/squashfs-tools: fix building w/newer glibc
Diffstat (limited to 'sys-fs/squashfs-tools/files')
-rw-r--r--sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch b/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
new file mode 100644
index 000000000000..1430b1a2ee0d
--- /dev/null
+++ b/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
@@ -0,0 +1,25 @@
+sys/types.h might not always include sys/sysmacros.h for major/minor/makedev
+
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -59,6 +59,7 @@
+ #else
+ #include <endian.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #endif
+
+ #include "squashfs_fs.h"
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -38,6 +38,10 @@
+ #include <limits.h>
+ #include <ctype.h>
+
++#ifdef linux
++#include <sys/sysmacros.h>
++#endif
++
+ struct cache *fragment_cache, *data_cache;
+ struct queue *to_reader, *to_inflate, *to_writer, *from_writer;
+ pthread_t *thread, *inflator_thread;