Skip to content

Commit

Permalink
[patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
willschm committed Feb 7, 2013
1 parent 8f7dc82 commit df5b330
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

namespace {

Expand Down

0 comments on commit df5b330

Please sign in to comment.