Cherry-pick upstream r309920

This fixes the build of libcxx with glibc version >= 2.26

TBR=sbc@chromium.org
Bug: 868204
Change-Id: Ic347d2685dcb0fee7fb4851cd1a08947ba221176
diff --git a/include/__locale b/include/__locale
index e68a06d..0868441 100644
--- a/include/__locale
+++ b/include/__locale
@@ -37,9 +37,9 @@
 // include of <sys/cdefs.h> once https://sourceware.org/ml/newlib-cvs/2014-q3/msg00038.html
 // has had a chance to bake for a bit.
 #include <support/newlib/xlocale.h>
-// @LOCALMOD-END
-#elif (defined(__GLIBC__) || defined(__APPLE__)      || defined(__FreeBSD__) \
+#elif (defined(__APPLE__)      || defined(__FreeBSD__) \
     || defined(__EMSCRIPTEN__) || defined(__IBMCPP__))
+// @LOCALMOD-END
 # include <xlocale.h>
 #elif defined(_LIBCPP_HAS_MUSL_LIBC)
 # include <support/musl/xlocale.h>