From b19553811c5c709aabe0c5fdde708d6d1de3a780 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 22 Jul 2017 00:04:35 +0200 Subject: [PATCH] [main] Respect the configure check for libevent_pthreads --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index c957d2c8..7fce010c 100644 --- a/src/main.c +++ b/src/main.c @@ -46,7 +46,9 @@ #include #include -#include +#ifdef HAVE_LIBEVENT_PTHREADS +# include +#endif #include #include #include @@ -689,7 +691,7 @@ main(int argc, char **argv) /* Initialize event base (after forking) */ CHECK_NULL(L_MAIN, evbase_main = event_base_new()); -#ifdef SPOTIFY +#ifdef HAVE_LIBEVENT_PTHREADS CHECK_ERR(L_MAIN, evthread_use_pthreads()); #endif