Sprinkle a few <cstdlib> includes, for libomptarget sources using

malloc, free, alloca and getenv.  NFCI.

llvm-svn: 322869
This commit is contained in:
Dimitry Andric 2018-01-18 18:24:22 +00:00
parent eb3f76fc83
commit 9f49676a8a
3 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include <climits>
#include <cstring>
#include <cstdlib>
EXTERN int omp_get_num_devices(void) {
RTLsMtx.lock();

View File

@ -19,6 +19,7 @@
#include "rtl.h"
#include <cassert>
#include <cstdlib>
////////////////////////////////////////////////////////////////////////////////
/// adds a target shared library to the target execution image

View File

@ -16,6 +16,7 @@
#include "rtl.h"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <dlfcn.h>
#include <mutex>