From 37228c3809552749f13d3c2a409a90411eca7086 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 18 Sep 2006 07:32:47 +0000 Subject: [PATCH] (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type. --- src/ChangeLog | 5 +++++ src/mac.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 30f1ad71543..da01ca857a6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-09-18 YAMAMOTO Mitsuharu + + * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1. + [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type. + 2006-09-17 Jay Belanger * gmalloc.c: diff --git a/src/mac.c b/src/mac.c index 51b821dcd95..151cce9c0f3 100644 --- a/src/mac.c +++ b/src/mac.c @@ -4975,6 +4975,10 @@ extern int noninteractive; 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 @@ sys_select (nfds, rfds, wfds, efds, timeout) 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) -- 2.39.2