summaryrefslogtreecommitdiff
path: root/test/test-segfault.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2016-10-10 15:07:34 +0100
committerSimon McVittie <smcv@debian.org>2016-10-13 17:20:38 +0100
commitb6caf69d469a4dae8bed2092cc5e32d25192ecf4 (patch)
treef5c1014469ef959cf9e053787a85f07700884ca4 /test/test-segfault.c
parent47f14b8e3b5e676ac8accadf5a7d614b95bf6e1d (diff)
downloaddbus-b6caf69d469a4dae8bed2092cc5e32d25192ecf4.tar.gz
Fix remaining -Wundef warnings
Vaguely based on a patch from Thomas Zimmermann, but with a different solution to RECURSIVE_MARSHAL_WRITE_TRACE, and additionally fixing a build failure that only occurs when targeting Unix without libsystemd, and another that occurs when targeting Windows. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Thomas Zimmermann <tdz@users.sourceforge.net> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357
Diffstat (limited to 'test/test-segfault.c')
-rw-r--r--test/test-segfault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-segfault.c b/test/test-segfault.c
index b6c0f8ad..cd80db6d 100644
--- a/test/test-segfault.c
+++ b/test/test-segfault.c
@@ -44,7 +44,7 @@ main (int argc, char **argv)
SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)&exception_handler);
#endif
-#if HAVE_SETRLIMIT
+#ifdef HAVE_SETRLIMIT
/* No core dumps please, we know we crashed. */
struct rlimit r = { 0, };