Fixes: https://ci.appveyor.com/project/azat/libevent/build/job/gvud4tcqsd5bnarl
Fixes: https://ci.appveyor.com/project/azat/libevent/build/2.1.6.80/job/5frnb1c3n4quxxqy
Fixes: https://ci.appveyor.com/project/azat/libevent/build/2.1.6.80/job/3wdahbrew7setmoa
if BUILD_WIN32
SYS_LIBS = -lws2_32 -lshell32 -ladvapi32
-SYS_SRC = win32select.c evthread_win32.c buffer_iocp.c event_iocp.c \
+SYS_SRC = win32select.c buffer_iocp.c event_iocp.c \
bufferevent_async.c
SYS_INCLUDES = -IWIN32-Code -IWIN32-Code/nmake
+if THREADS
+SYS_SRC += evthread_win32.c
+endif
+
else
SYS_LIBS =
#include <pthread.h> ]
)
fi
+AM_CONDITIONAL(THREADS, [test "$enable_thread_support" != "no"])
AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
# check if we should compile locking into the library
PTHREAD_LIBS += libevent_pthreads.la
endif
if BUILD_WIN32
+if THREADS
regress_thread_SOURCES = test/regress_thread.c
endif
+endif
if ZLIB_REGRESS
regress_zlib_SOURCES = test/regress_zlib.c
endif