summaryrefslogtreecommitdiff
path: root/lib/fts_.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-25 15:24:07 +0000
committerJim Meyering <jim@meyering.net>2003-10-25 15:24:07 +0000
commit7cc19406631ec5997238274facc86c8a80dd6a64 (patch)
tree95e36ccf14b97965f201d8031b1000be4254c24a /lib/fts_.h
parent6dfffb70f2e2e9f503ca5161e5ddb782a698edd8 (diff)
downloadcoreutils-7cc19406631ec5997238274facc86c8a80dd6a64.tar.xz
Include <features.h> only if _LIBC.
[!_LIBC]: Define-away __THROW, __BEGIN_DECLS, __END_DECLS.
Diffstat (limited to 'lib/fts_.h')
-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 {