diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a696b260..78153056 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -7626,6 +7626,11 @@ MHD_start_daemon_va (unsigned int flags, return NULL; #endif /* ! UPGRADE_SUPPORT */ } +#ifndef MHD_USE_THREADS + if (0 != (*pflags & MHD_USE_INTERNAL_POLLING_THREAD)) + return NULL; +#endif /* ! MHD_USE_THREADS */ + if (NULL == dh) return NULL;