diff options
author | Dimitry Andric <dimitry@andric.com> | 2018-01-18 18:24:22 +0000 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2018-01-18 18:24:22 +0000 |
commit | 9f49676a8a6720bb69e93fa3fecd70fa84d05c20 (patch) | |
tree | fe311995edb3055fcb5b8dcbb14803f2a2eaf0ce | |
parent | eb3f76fc83146f85b424a8f923f65263069876dd (diff) | |
download | bcm5719-llvm-9f49676a8a6720bb69e93fa3fecd70fa84d05c20.tar.gz bcm5719-llvm-9f49676a8a6720bb69e93fa3fecd70fa84d05c20.zip |
Sprinkle a few <cstdlib> includes, for libomptarget sources using
malloc, free, alloca and getenv. NFCI.
llvm-svn: 322869
-rw-r--r-- | openmp/libomptarget/src/api.cpp | 1 | ||||
-rw-r--r-- | openmp/libomptarget/src/interface.cpp | 1 | ||||
-rw-r--r-- | openmp/libomptarget/src/rtl.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/openmp/libomptarget/src/api.cpp b/openmp/libomptarget/src/api.cpp index 8a67754e741..15c1d2c7b59 100644 --- a/openmp/libomptarget/src/api.cpp +++ b/openmp/libomptarget/src/api.cpp @@ -19,6 +19,7 @@ #include <climits> #include <cstring> +#include <cstdlib> EXTERN int omp_get_num_devices(void) { RTLsMtx.lock(); diff --git a/openmp/libomptarget/src/interface.cpp b/openmp/libomptarget/src/interface.cpp index 2e0e496fd3f..a48d66788ff 100644 --- a/openmp/libomptarget/src/interface.cpp +++ b/openmp/libomptarget/src/interface.cpp @@ -19,6 +19,7 @@ #include "rtl.h" #include <cassert> +#include <cstdlib> //////////////////////////////////////////////////////////////////////////////// /// adds a target shared library to the target execution image diff --git a/openmp/libomptarget/src/rtl.cpp b/openmp/libomptarget/src/rtl.cpp index 64a7f7fe128..315252801fe 100644 --- a/openmp/libomptarget/src/rtl.cpp +++ b/openmp/libomptarget/src/rtl.cpp @@ -16,6 +16,7 @@ #include "rtl.h" #include <cassert> +#include <cstdlib> #include <cstring> #include <dlfcn.h> #include <mutex> |