summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2011-06-21 17:12:52 +0200
committerDenys Vlasenko2011-06-21 17:12:52 +0200
commit1e18a01fa2965ef967b99d519018e21c9b5f15af (patch)
treeb76c9ea65545bfeaa76e822eed76f9b476a8ef32 /include
parent33092f1003982fc26339c0fda66283805cfbcfb1 (diff)
downloadbusybox-1e18a01fa2965ef967b99d519018e21c9b5f15af.zip
busybox-1e18a01fa2965ef967b99d519018e21c9b5f15af.tar.gz
ls: fix HAVE_STRVERSCMP check; add check for older uclibc versions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index d6b7488..cbe85f4 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -359,6 +359,16 @@ typedef unsigned smalluint;
# undef HAVE_NET_ETHERNET_H
#endif
+#if defined(__UCLIBC_MAJOR__)
+# if __UCLIBC_MAJOR__ == 0 \
+ && ( __UCLIBC_MINOR__ < 9 \
+ || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ < 31) \
+ )
+# undef HAVE_STRVERSCMP
+# endif
+#endif
+
+
#if defined(__dietlibc__)
# undef HAVE_STRCHRNUL
#endif