[llvm] r174661 - [patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp
Will Schmidt
will_schmidt at vnet.ibm.com
Thu Feb 7 12:43:33 PST 2013
Author: willschm
Date: Thu Feb 7 14:43:33 2013
New Revision: 174661
URL: http://llvm.org/viewvc/llvm-project?rev=174661&view=rev
Log:
[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"
Modified:
llvm/trunk/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
Modified: llvm/trunk/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp?rev=174661&r1=174660&r2=174661&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp Thu Feb 7 14:43:33 2013
@@ -29,6 +29,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <unistd.h>
namespace {
More information about the llvm-commits
mailing list