From 5efad9cfeaaf294da1af601b63d7c55dfb85041d Mon Sep 17 00:00:00 2001 From: nia Date: Mon, 8 Aug 2022 17:09:14 +0200 Subject: [PATCH] tests: Fix building tests on NetBSD by providing is_debugger_attached Signed-off-by: Nia Alarie --- tests/test-runner.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-runner.c b/tests/test-runner.c index d07dab15..1bfb0df4 100644 --- a/tests/test-runner.c +++ b/tests/test-runner.c @@ -308,6 +308,13 @@ is_debugger_attached(void) return rc; } +#else +static int +is_debugger_attached(void) +{ + /* 0=debugger can't be determined */ + return 0; +} #endif int main(int argc, char *argv[])