tools/findutils: include sysmacros.h explicitly
authorAlex Maclean <monkeh@monkeh.net>
Mon, 23 Oct 2017 12:43:43 +0000 (13:43 +0100)
committerMathias Kresin <dev@kresin.me>
Wed, 25 Oct 2017 16:50:27 +0000 (18:50 +0200)
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>
tools/findutils/patches/100-include_sysmacros.patch [new file with mode: 0644]

diff --git a/tools/findutils/patches/100-include_sysmacros.patch b/tools/findutils/patches/100-include_sysmacros.patch
new file mode 100644 (file)
index 0000000..82b1ee9
--- /dev/null
@@ -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>