Fix includes for ptrace(PT_DENY_ATTACH, ...).

This commit is contained in:
Felix Geyer 2012-10-23 17:06:50 +02:00
parent 21f1eb2d14
commit 18337927f5
2 changed files with 3 additions and 1 deletions

View File

@ -194,7 +194,8 @@ if(UNIX)
}" HAVE_RLIMIT_CORE)
if(APPLE)
check_cxx_source_compiles("#include <sys/ptrace.h>
check_cxx_source_compiles("#include <sys/types.h>
#include <sys/ptrace.h>
int main() { ptrace(PT_DENY_ATTACH, 0, 0, 0); return 0; }"
HAVE_PT_DENY_ATTACH)
endif()

View File

@ -46,6 +46,7 @@
#endif
#ifdef HAVE_PT_DENY_ATTACH
#include <sys/types.h>
#include <sys/ptrace.h>
#endif