summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorWill Schmidt <will_schmidt@vnet.ibm.com>2013-02-07 20:43:33 +0000
committerWill Schmidt <will_schmidt@vnet.ibm.com>2013-02-07 20:43:33 +0000
commitdf5b3305c71b21eb3ace56922d75fb777ac25c17 (patch)
treed1b5a67e289f3bad221fcb45efc9a839cecb3ebb /lib/ExecutionEngine
parent8f7dc823bfda3efede14a3cf9c294a2da3ad8777 (diff)
[patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp
Add #include <unistd.h> to OProfileWrapper.cpp. This provides the declarations for 'read' and 'close' that are otherwise missing, and result in 'error: <foo> was not declared in this scope'. This matches the issue as reported in bug 15055 "Can no longer compile LLVM with --with-oprofile" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
index d67f5370b86..7c0d3951859 100644
--- a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
+++ b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
@@ -29,6 +29,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <unistd.h>
namespace {