changeset 72953:4df4a8300599

(SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 18 Sep 2006 07:32:36 +0000
parents 92c74a858f19
children 2d71128bdfd5
files src/mac.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mac.c	Mon Sep 18 03:38:44 2006 +0000
+++ b/src/mac.c	Mon Sep 18 07:32:36 2006 +0000
@@ -4975,6 +4975,10 @@
          executing `select' with a short timeout
          (SELECT_POLLING_PERIOD_USEC microseconds).  */
 
+#ifndef SELECT_USE_CFSOCKET
+#define SELECT_USE_CFSOCKET 1
+#endif
+
 #define SELECT_POLLING_PERIOD_USEC 100000
 #if SELECT_USE_CFSOCKET
 #define SELECT_TIMEOUT_THRESHOLD_RUNLOOP 0.2
@@ -5115,7 +5119,7 @@
 	  int minfd, fd;
 	  CFRunLoopRef runloop =
 	    (CFRunLoopRef) GetCFRunLoopFromEventLoop (GetCurrentEventLoop ());
-	  static CFSocketContext context = {0, &ofds, NULL, NULL, NULL};
+	  static CFSocketContext context = {0, ofds, NULL, NULL, NULL};
 	  static CFMutableDictionaryRef sources;
 
 	  if (sources == NULL)