summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stdexcept
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/stdexcept')
-rw-r--r--libcxx/include/stdexcept3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/stdexcept b/libcxx/include/stdexcept
index 684578ffb96..b78d5d60273 100644
--- a/libcxx/include/stdexcept
+++ b/libcxx/include/stdexcept
@@ -45,6 +45,9 @@ public:
#include <__config>
#include <exception>
#include <iosfwd> // for string forward decl
+#ifdef _LIBCPP_NO_EXCEPTIONS
+#include <cstdlib>
+#endif
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
OpenPOWER on IntegriCloud