[patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 7 Feb 2013 20:43:33 +0000 (20:43 +0000)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 7 Feb 2013 20:43:33 +0000 (20:43 +0000)
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

lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp

index d67f5370b8629744a2ddfbf8b8672698ffcb041f..7c0d39518595ebc76000a9194d3acf11bd17f6fd 100644 (file)
@@ -29,6 +29,7 @@
 #include <dirent.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 namespace {