[PATCH] D33883: Fix building DynamicLibrary.cpp with musl libc
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 04:22:40 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL304707: Fix building DynamicLibrary.cpp with musl libc (authored by dim).
Changed prior to commit:
https://reviews.llvm.org/D33883?vs=101369&id=101387#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33883
Files:
llvm/trunk/lib/Support/Unix/DynamicLibrary.inc
Index: llvm/trunk/lib/Support/Unix/DynamicLibrary.inc
===================================================================
--- llvm/trunk/lib/Support/Unix/DynamicLibrary.inc
+++ llvm/trunk/lib/Support/Unix/DynamicLibrary.inc
@@ -101,10 +101,10 @@
#define EXPLICIT_SYMBOL(SYM) \
if (!strcmp(SymbolName, #SYM)) return &SYM
-// On linux we have a weird situation. The stderr/out/in symbols are both
+// Under glibc we have a weird situation. The stderr/out/in symbols are both
// macros and global variables because of standards requirements. So, we
// boldly use the EXPLICIT_SYMBOL macro without checking for a #define first.
-#if defined(__linux__) and !defined(__ANDROID__)
+#if defined(__GLIBC__)
{
EXPLICIT_SYMBOL(stderr);
EXPLICIT_SYMBOL(stdout);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33883.101387.patch
Type: text/x-patch
Size: 772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170605/feaa4f08/attachment.bin>
More information about the llvm-commits
mailing list