From 717fbc42c3d518b3973b32ff25c4a2764295dbd6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 27 Apr 2017 10:23:45 +1000 Subject: [PATCH] test: switch from #ifdef to #if HAVE_LIBUNWIND We use #if everywhere else and it allows building with '-Wundef -Werror=undef' to avoid accidental misuse. Signed-off-by: Peter Hutterer --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index c7869e86..9eadc459 100644 --- a/test/litest.c +++ b/test/litest.c @@ -87,7 +87,7 @@ static void litest_remove_udev_rules(struct list *created_files_list); #define litest_vlog(...) { /* __VA_ARGS__ */ } #endif -#ifdef HAVE_LIBUNWIND +#if HAVE_LIBUNWIND #define UNW_LOCAL_ONLY #include #include