aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-11 09:45:52 +0100
committerMichał Górny <mgorny@gentoo.org>2021-03-11 09:55:49 +0100
commit7962de6a71a4f8c99df1ad448a455c96ee4c33b3 (patch)
treef0578a33349c1df81ec293a3792051bfa6b3c301 /tests/libsigsegv_tst.c
parentUpdate m4 macros (diff)
downloadsandbox-7962de6a71a4f8c99df1ad448a455c96ee4c33b3.tar.gz
sandbox-7962de6a71a4f8c99df1ad448a455c96ee4c33b3.tar.bz2
sandbox-7962de6a71a4f8c99df1ad448a455c96ee4c33b3.zip
Fix detecting libsigsegv
Apparently the hack to pretend that libsigsegv's headers do not exist does not work anymore. Fix the test to actually respect library check status instead. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/libsigsegv_tst.c')
-rw-r--r--tests/libsigsegv_tst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libsigsegv_tst.c b/tests/libsigsegv_tst.c
index 82ed21b..2b17fa4 100644
--- a/tests/libsigsegv_tst.c
+++ b/tests/libsigsegv_tst.c
@@ -11,7 +11,7 @@
#define WRITE(msg) ({ ssize_t w = write(1, msg, sizeof(msg) - 1); w; })
-#ifdef HAVE_SIGSEGV_H
+#if defined(HAVE_SIGSEGV_H) && defined(HAVE_LIBSIGSEGV)
#include <sigsegv.h>
static int segv_handler(void *address, int serious)