]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <features.h> only if _LIBC.
authorJim Meyering <jim@meyering.net>
Sat, 25 Oct 2003 15:24:07 +0000 (15:24 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Oct 2003 15:24:07 +0000 (15:24 +0000)
[!_LIBC]: Define-away __THROW, __BEGIN_DECLS, __END_DECLS.

lib/fts_.h

index c8c3cd0734346a96d7d7448611b5e2c96b580077..ed0cb1c256083e5570763681306d0f5f5c5275c5 100644 (file)
 #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 {