[PATCH] Correct ifdef for glibc specific feature. Patch by David Turner <digit at android.com>

Albert Wong ajwong at google.com
Sat Jun 28 02:06:04 PDT 2014

Fixes compile failure on systems that qualify as "linux" but are not glibc based.



Index: include/__config
--- include/__config
+++ include/__config
@@ -317,7 +317,7 @@
 #if defined(__FreeBSD__)
-#elif defined(__linux__)
+#elif defined(__linux__) && defined(__GLIBC__)
 #include <features.h>
 #if __GLIBC_PREREQ(2, 15)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4339.10960.patch
Type: text/x-patch
Size: 402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140628/ee4986ba/attachment.bin>

More information about the cfe-commits mailing list