From 1e18a01fa2965ef967b99d519018e21c9b5f15af Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 21 Jun 2011 17:12:52 +0200 Subject: ls: fix HAVE_STRVERSCMP check; add check for older uclibc versions Signed-off-by: Denys Vlasenko --- include/platform.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index d6b748844..cbe85f469 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 -- cgit v1.2.3