--- a/libcxxabi/test/test_vector3.cpp
+++ b/libcxxabi/test/test_vector3.cpp
@@ -14,7 +14,8 @@
 #include <exception>
 
 #include <memory>
-
+//for exit(int)
+#include <cstdlib>
 // use dtors instead of try/catch
 namespace test1 {
     struct B {
@@ -54,4 +55,4 @@
   __cxxabiv1::__cxa_vec_dtor(a, 10, sizeof(test1::A), destroy<test1::A>);
   assert(false);
   }
-}
\ No newline at end of file
+}
