From: Will Schmidt Date: Thu, 7 Feb 2013 20:43:33 +0000 (+0000) Subject: [patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02cb6f9e91983a3e40be0d62c7bd34b01679577a;p=platform%2Fupstream%2Fllvm.git [patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp Add #include to OProfileWrapper.cpp. This provides the declarations for 'read' and 'close' that are otherwise missing, and result in 'error: 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 --- diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp index d67f537..7c0d395 100644 --- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp +++ b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp @@ -29,6 +29,7 @@ #include #include #include +#include namespace {