mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-15 02:59:21 -04:00
Fix includes for ptrace(PT_DENY_ATTACH, ...).
This commit is contained in:
parent
21f1eb2d14
commit
18337927f5
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_PT_DENY_ATTACH
|
||||
#include <sys/types.h>
|
||||
#include <sys/ptrace.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue