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

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 27 02:20:56 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9

commit 4a5de1f4309fe2de6a9af8c4d1b0e7b65372cee9
Author: Alex Maclean <monkeh at monkeh.net>
AuthorDate: Mon Oct 23 13:43:43 2017 +0100

    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 at monkeh.net>
---
 tools/findutils/patches/100-include_sysmacros.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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



More information about the lede-commits mailing list