aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fts_.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/fts_.h b/lib/fts_.h
index c8c3cd073..ed0cb1c25 100644
--- a/lib/fts_.h
+++ b/lib/fts_.h
@@ -32,7 +32,17 @@
#ifndef _FTS_H
# define _FTS_H 1
-# include <features.h>
+# ifdef _LIBC
+# include <features.h>
+# else
+# undef __THROW
+# define __THROW
+# undef __BEGIN_DECLS
+# define __BEGIN_DECLS
+# undef __END_DECLS
+# define __END_DECLS
+# endif
+
# include <sys/types.h>
typedef struct {