summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp1
-rw-r--r--llvm/lib/System/Path.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index eebd2b1f169..a21f16ab327 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/lib/System/DynamicLibrary.cpp
@@ -13,6 +13,7 @@
#include "llvm/System/DynamicLibrary.h"
#include "llvm/Config/config.h"
+#include <cstring>
#include <map>
// Collection of symbol name/value pairs to be searched prior to any libraries.
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp
index 144959755ef..6f0667fba50 100644
--- a/llvm/lib/System/Path.cpp
+++ b/llvm/lib/System/Path.cpp
@@ -14,6 +14,7 @@
#include "llvm/System/Path.h"
#include "llvm/Config/config.h"
#include <cassert>
+#include <cstring>
#include <ostream>
using namespace llvm;
using namespace sys;
OpenPOWER on IntegriCloud