From a684535693b4949e4863d0f60178ac3fc6638e82 Mon Sep 17 00:00:00 2001 From: smcgruer Date: Tue, 14 Apr 2015 00:54:30 -0700 Subject: [PATCH] Restore V8_LIBC_UCLIBC as a libc option. As uClibc defines __GLIBC__ in an attempt to look like glibc, V8_LIBC_GLIBC was true for uClibc as well. Checking for uClibc before glibc fixes this and restores the correct behavior. BUG= Review URL: https://codereview.chromium.org/1066573005 Cr-Commit-Position: refs/heads/master@{#27806} --- include/v8config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/v8config.h b/include/v8config.h index fabf13b..a0d9b5c 100644 --- a/include/v8config.h +++ b/include/v8config.h @@ -124,6 +124,7 @@ // V8_LIBC_BIONIC - Bionic libc // V8_LIBC_BSD - BSD libc derivate // V8_LIBC_GLIBC - GNU C library +// V8_LIBC_UCLIBC - uClibc // // Note that testing for libc must be done using #if not #ifdef. For example, // to test for the GNU C library, use: @@ -136,6 +137,9 @@ #elif defined(__BIONIC__) # define V8_LIBC_BIONIC 1 # define V8_LIBC_BSD 1 +#elif defined(__UCLIBC__) +// Must test for UCLIBC before GLIBC, as UCLIBC pretends to be GLIBC. +# define V8_LIBC_UCLIBC 1 #elif defined(__GLIBC__) || defined(__GNU_LIBRARY__) # define V8_LIBC_GLIBC 1 #else -- 2.7.4