aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Support/SystemUtils.cpp3
-rw-r--r--support/lib/Support/SystemUtils.cpp3
-rw-r--r--tools/bugpoint/SystemUtils.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp
index 98b2fc662c..034c141f79 100644
--- a/lib/Support/SystemUtils.cpp
+++ b/lib/Support/SystemUtils.cpp
@@ -9,7 +9,8 @@
#include <algorithm>
#include <fstream>
#include <iostream>
-#include <stdlib.h>
+#include <cstdlib>
+#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/support/lib/Support/SystemUtils.cpp b/support/lib/Support/SystemUtils.cpp
index 98b2fc662c..034c141f79 100644
--- a/support/lib/Support/SystemUtils.cpp
+++ b/support/lib/Support/SystemUtils.cpp
@@ -9,7 +9,8 @@
#include <algorithm>
#include <fstream>
#include <iostream>
-#include <stdlib.h>
+#include <cstdlib>
+#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/tools/bugpoint/SystemUtils.cpp b/tools/bugpoint/SystemUtils.cpp
index 98b2fc662c..034c141f79 100644
--- a/tools/bugpoint/SystemUtils.cpp
+++ b/tools/bugpoint/SystemUtils.cpp
@@ -9,7 +9,8 @@
#include <algorithm>
#include <fstream>
#include <iostream>
-#include <stdlib.h>
+#include <cstdlib>
+#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>