From 5e0621f78a32d48e9a52d78b3f1c6ce2f577a2ea Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 19 Mar 2012 15:39:08 -0700 Subject: [PATCH] qsort_t was only defined in glibc 2.8 Change-Id: I646bac8ed4d94bf75a33b886e700c91c3837bc32 --- include/arch/linux-x86/AndroidConfig.h | 4 ++++ 1 file changed, 4 insertions(+) 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*/