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