# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1158564756 0 # Node ID 4df4a8300599e4bc012d6627f2dc6b25c860dfa3 # Parent 92c74a858f193756a1469bd40aae7a7a0a159a3f (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type. diff -r 92c74a858f19 -r 4df4a8300599 src/mac.c --- 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)