diff options
| author | Alex Maclean | 2017-10-23 12:43:43 +0000 |
|---|---|---|
| committer | Mathias Kresin | 2017-10-25 16:50:27 +0000 |
| commit | d2fd6412a63655dd748ba4651e59898c6a8e7d03 (patch) | |
| tree | 9f208ce690096b27c07ca02d3451e449a885d233 | |
| parent | 367b4563b4cd466188bd4c8cf24ff0a125029c1c (diff) | |
| download | chunkeey-d2fd6412a63655dd748ba4651e59898c6a8e7d03.tar.gz | |
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>
| -rw-r--r-- | tools/findutils/patches/100-include_sysmacros.patch | 13 |
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> |