By default libcurl prefers WSAPoll instead of select. I have a case where that's the wrong thing to do and so I *must* use select. I thought forcing select would be a nice option (and requisite in my case) and this is the patch:
diff --git a/lib/select.h b/lib/select.h index e431e5f..75c59ed 100644 --- a/lib/select.h +++ b/lib/select.h @@ -48,6 +48,16 @@ # endif #endif + +/* + * In some cases select may be preferred over poll/WSAPoll. + */ + +#ifdef FORCE_SELECT +#define HAVE_SELECT 1 +#undef HAVE_POLL_FINE +#endif // FORCE_SELECT + https://github.com/bagder/curl/pull/26 -- Ola Mork Senior Software Engineer Agora Games 359 Broadway Troy, NY 12180 [email protected] Phone: 518.268.1000 www.agoragames.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
