Fix a warning about undeclared call to abort().
authorDan Albert <danalbert@google.com>
Wed, 2 Jul 2014 22:44:35 +0000 (22:44 +0000)
committerDan Albert <danalbert@google.com>
Wed, 2 Jul 2014 22:44:35 +0000 (22:44 +0000)
llvm-svn: 212232

libcxxabi/src/Unwind/config.h

index 6f0d1cf..6b459ee 100644 (file)
   #endif
 
 #else
-  // ARM EHABI.
+  #include <stdlib.h>
+
   static inline void assert_rtn(const char* func, const char* file, int line, const char* msg)  __attribute__ ((noreturn));
   static inline void assert_rtn(const char* func, const char* file, int line, const char* msg) {
     fprintf(stderr, "libunwind: %s %s:%d - %s\n",  func, file, line, msg);
     assert(false);
     abort();
   }
+
   #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__i386__ || __x86_64__ || __arm64__ || __arm__)
   #define _LIBUNWIND_BUILD_SJLJ_APIS      0
   #define _LIBUNWIND_SUPPORT_FRAME_APIS   (__i386__ || __x86_64__)