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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-04-27 10:23:45 +10:00
parent 251023b9e4
commit 717fbc42c3

View file

@ -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 <libunwind.h>
#include <dlfcn.h>