cURL / Mailing Lists / curl-library / Single Mail

curl-library

Forcing select on vista

From: Ola Mork <ola_at_agoragames.com>
Date: Thu, 21 Jul 2011 18:04:20 -0400

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
ola_at_agoragames.com
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
Received on 2011-07-22