diff options
author | Will Schmidt <will_schmidt@vnet.ibm.com> | 2013-02-07 20:43:33 +0000 |
---|---|---|
committer | Will Schmidt <will_schmidt@vnet.ibm.com> | 2013-02-07 20:43:33 +0000 |
commit | 02cb6f9e91983a3e40be0d62c7bd34b01679577a (patch) | |
tree | fd81f735e4371937132152492917ffa9fca8ebc2 /llvm/lib/ExecutionEngine/OProfileJIT | |
parent | b3cece13cf42bf22ded3505068de2715b6d84ea6 (diff) | |
download | bcm5719-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.cpp | 1 |
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 { |