[libcxxabi] r205573 - Include stdlib.h for getenv when !NDEBUG.

Joerg Sonnenberger joerg at bec.de
Thu Apr 3 15:00:08 PDT 2014


Author: joerg
Date: Thu Apr  3 17:00:08 2014
New Revision: 205573

URL: http://llvm.org/viewvc/llvm-project?rev=205573&view=rev
Log:
Include stdlib.h for getenv when !NDEBUG.

Modified:
    libcxxabi/trunk/src/Unwind/libunwind.cpp

Modified: libcxxabi/trunk/src/Unwind/libunwind.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/libunwind.cpp?rev=205573&r1=205572&r2=205573&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/libunwind.cpp (original)
+++ libcxxabi/trunk/src/Unwind/libunwind.cpp Thu Apr  3 17:00:08 2014
@@ -316,6 +316,7 @@ void _unw_remove_dynamic_fde(unw_word_t
 
 // Add logging hooks in Debug builds only
 #ifndef NDEBUG
+#include <stdlib.h>
 
 _LIBUNWIND_HIDDEN
 bool logAPIs() {





More information about the cfe-commits mailing list