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

Albert J Wong ajwong at chromium.org
Sat Jun 28 01:55:19 PDT 2014


Hi mclow.lists,

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

http://reviews.llvm.org/D4337

Files:
  include/__config

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


More information about the cfe-commits mailing list