[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)
commit02cb6f9e91983a3e40be0d62c7bd34b01679577a
treefd81f735e4371937132152492917ffa9fca8ebc2
parentb3cece13cf42bf22ded3505068de2715b6d84ea6
[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
llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp