summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/OProfileJIT
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
commit02cb6f9e91983a3e40be0d62c7bd34b01679577a (patch)
treefd81f735e4371937132152492917ffa9fca8ebc2 /llvm/lib/ExecutionEngine/OProfileJIT
parentb3cece13cf42bf22ded3505068de2715b6d84ea6 (diff)
downloadbcm5719-llvm-02cb6f9e91983a3e40be0d62c7bd34b01679577a.tar.gz
bcm5719-llvm-02cb6f9e91983a3e40be0d62c7bd34b01679577a.zip
[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" llvm-svn: 174661
Diffstat (limited to 'llvm/lib/ExecutionEngine/OProfileJIT')
-rw-r--r--llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
index d67f5370b86..7c0d3951859 100644
--- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
+++ b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
@@ -29,6 +29,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <unistd.h>
namespace {
OpenPOWER on IntegriCloud