diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-21 19:12:52 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-21 19:12:52 +0400 |
commit | 1e18a01fa2965ef967b99d519018e21c9b5f15af (patch) | |
tree | b76c9ea65545bfeaa76e822eed76f9b476a8ef32 /include/platform.h | |
parent | 33092f1003982fc26339c0fda66283805cfbcfb1 (diff) |
ls: fix HAVE_STRVERSCMP check; add check for older uclibc versions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |