diff --git a/include/arch/linux-x86/AndroidConfig.h b/include/arch/linux-x86/AndroidConfig.h index e1ba3ed2a..431a54b91 100644 --- a/include/arch/linux-x86/AndroidConfig.h +++ b/include/arch/linux-x86/AndroidConfig.h @@ -341,6 +341,10 @@ /* * Define to 1 if provides qsort_r() with a GNU style function prototype. */ +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) #define HAVE_GNU_QSORT_R 1 +#else +#define HAVE_GNU_QSORT_R 0 +#endif #endif /*_ANDROID_CONFIG_H*/