From 18337927f524f03c9a903d5ac5765d12d62ca8c7 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 23 Oct 2012 17:06:50 +0200 Subject: [PATCH] Fix includes for ptrace(PT_DENY_ATTACH, ...). --- CMakeLists.txt | 3 ++- src/core/Tools.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55c92992a..74eda636a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,7 +194,8 @@ if(UNIX) }" HAVE_RLIMIT_CORE) if(APPLE) - check_cxx_source_compiles("#include + check_cxx_source_compiles("#include + #include int main() { ptrace(PT_DENY_ATTACH, 0, 0, 0); return 0; }" HAVE_PT_DENY_ATTACH) endif() diff --git a/src/core/Tools.cpp b/src/core/Tools.cpp index 5d1d6e2c9..ab4bec0bd 100644 --- a/src/core/Tools.cpp +++ b/src/core/Tools.cpp @@ -46,6 +46,7 @@ #endif #ifdef HAVE_PT_DENY_ATTACH +#include #include #endif