aboutsummaryrefslogtreecommitdiff
path: root/tools/gnulib/patches/120-unmangle-darwin-fts-h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gnulib/patches/120-unmangle-darwin-fts-h.patch')
-rw-r--r--tools/gnulib/patches/120-unmangle-darwin-fts-h.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/gnulib/patches/120-unmangle-darwin-fts-h.patch b/tools/gnulib/patches/120-unmangle-darwin-fts-h.patch
new file mode 100644
index 0000000000..19e46b9103
--- /dev/null
+++ b/tools/gnulib/patches/120-unmangle-darwin-fts-h.patch
@@ -0,0 +1,19 @@
+--- /dev/null
++++ b/lib/fts.h
+@@ -0,0 +1,6 @@
++#ifdef __APPLE__
++# define _FTS_H_ 1
++# include <fts_.h>
++#else
++# include_next <fts.h>
++#endif
+--- a/modules/fts
++++ b/modules/fts
+@@ -2,6 +2,7 @@ Description:
+ Traverse a file hierarchy.
+
+ Files:
++lib/fts.h
+ lib/fts_.h
+ lib/fts.c
+ lib/fts-cycle.c