Commit 37228c38 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.

[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
parent a688d8b5
2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* 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 <belanger@truman.edu>
 
* gmalloc.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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment