summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2018-07-10 14:01:54 +0300
committerGreg V <greg@unrelenting.technology>2018-07-16 13:48:54 +0300
commitd23074cec9b3759393822c9577af41d474cdd292 (patch)
tree0a6cdc0f091be77edeec69ef719e53c4dae2cfa1 /meson.build
parent8cc4de5fc90fbcf5675f7f5bba9a87cba19b368b (diff)
test: ptrace compatibility with *BSD
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 931681a9..b9de1119 100644
--- a/meson.build
+++ b/meson.build
@@ -97,6 +97,12 @@ if cc.has_header('xlocale.h')
config_h.set('HAVE_XLOCALE_H', '1')
endif
+if not cc.has_header_symbol('sys/ptrace.h', 'PTRACE_ATTACH', prefix : prefix)
+ config_h.set('PTRACE_ATTACH', 'PT_ATTACH')
+ config_h.set('PTRACE_CONT', 'PT_CONTINUE')
+ config_h.set('PTRACE_DETACH', 'PT_DETACH')
+endif
+
# Dependencies
pkgconfig = import('pkgconfig')
dep_udev = dependency('libudev')