aboutsummaryrefslogtreecommitdiffstats
path: root/tools/findutils
diff options
context:
space:
mode:
authorAlex Maclean <monkeh@monkeh.net>2017-10-23 13:43:43 +0100
committerMathias Kresin <dev@kresin.me>2017-10-27 11:19:38 +0200
commit4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9 (patch)
treed25f48ad6403fcdde348f6fdc5de74df45641bb5 /tools/findutils
parentd4e7af52788fe6a5495064606e674ed6897a69cb (diff)
downloadupstream-4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9.tar.gz
upstream-4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9.tar.bz2
upstream-4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9.zip
tools/findutils: 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#1016 Signed-off-by: Alex Maclean <monkeh@monkeh.net>
Diffstat (limited to 'tools/findutils')
-rw-r--r--tools/findutils/patches/100-include_sysmacros.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/findutils/patches/100-include_sysmacros.patch b/tools/findutils/patches/100-include_sysmacros.patch
new file mode 100644
index 0000000000..82b1ee9a42
--- /dev/null
+++ b/tools/findutils/patches/100-include_sysmacros.patch
@@ -0,0 +1,13 @@
+--- a/gl/lib/mountlist.c
++++ b/gl/lib/mountlist.c
+@@ -17,6 +17,10 @@
+
+ #include <config.h>
+
++#ifdef MAJOR_IN_SYSMACROS
++# include <sys/sysmacros.h>
++#endif
++
+ #include "mountlist.h"
+
+ #include <limits.h>