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>
This commit is contained in:
parent
d4e7af5278
commit
4a5de1f430
13
tools/findutils/patches/100-include_sysmacros.patch
Normal file
13
tools/findutils/patches/100-include_sysmacros.patch
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user