You can also use very portable and universal solution:
mhd = MHD_start_daemon(MHD_USE_AUTO, ....
Thanks for sharing!
Is there any version of this code using epoll()? If so, I could contribute a new example implementing a portable static function, something like "MHD_poll()" in some new example like examples/httpserver_polling.c:
/* portable implementation using select() on Windows and epoll() on Unix systems. */