From df5b3305c71b21eb3ace56922d75fb777ac25c17 Mon Sep 17 00:00:00 2001 From: Will Schmidt Date: Thu, 7 Feb 2013 20:43:33 +0000 Subject: [PATCH] [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" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174661 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp index d67f5370b86..7c0d3951859 100644 --- a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp +++ b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp @@ -29,6 +29,7 @@ #include #include #include +#include namespace { -- 2.34.1