aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-06-30 02:59:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-06-30 02:59:17 +0200
commit75214cfe00c72c51c67c9ac2541f06b0540136f1 (patch)
tree98b611e6152e59a4cab9c0a44bef43a67aacc476 /include/platform.h
parent0c4cf42c1e4fbb5af8952cfbec926fe7d7b318d5 (diff)
downloadbusybox-75214cfe00c72c51c67c9ac2541f06b0540136f1.tar.gz
Use the _unlocked stdio macros only when they're all available
Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/platform.h b/include/platform.h
index d186e4911..60864c929 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -350,16 +350,14 @@ typedef unsigned smalluint;
#define HAVE_STRSIGNAL 1
#define HAVE_STRVERSCMP 1
#define HAVE_VASPRINTF 1
+#define HAVE_UNLOCKED_STDIO 1
+#define HAVE_UNLOCKED_LINE_OPS 1
#define HAVE_GETLINE 1
#define HAVE_XTABS 1
#define HAVE_MNTENT_H 1
#define HAVE_NET_ETHERNET_H 1
#define HAVE_SYS_STATFS_H 1
-#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 1)
-# undef HAVE_NET_ETHERNET_H
-#endif
-
#if defined(__UCLIBC_MAJOR__)
# if __UCLIBC_MAJOR__ == 0 \
&& ( __UCLIBC_MINOR__ < 9 \
@@ -369,7 +367,6 @@ typedef unsigned smalluint;
# endif
#endif
-
#if defined(__dietlibc__)
# undef HAVE_STRCHRNUL
#endif
@@ -387,6 +384,8 @@ typedef unsigned smalluint;
# undef HAVE_STRSIGNAL
# undef HAVE_STRVERSCMP
# undef HAVE_VASPRINTF
+# undef HAVE_UNLOCKED_STDIO
+# undef HAVE_UNLOCKED_LINE_OPS
# undef HAVE_NET_ETHERNET_H
#endif
@@ -424,6 +423,7 @@ typedef unsigned smalluint;
# undef HAVE_STPCPY
# undef HAVE_STRCHRNUL
# undef HAVE_STRVERSCMP
+# undef HAVE_UNLOCKED_LINE_OPS
# undef HAVE_NET_ETHERNET_H
#endif