diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-09-18 07:32:36 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-09-18 07:32:36 +0000 |
commit | 3ef51158684235d274fc7ce40c4541d3cc891eb8 (patch) | |
tree | f6fa4f6da98b547057768f74dfb2704f675330f6 /src/mac.c | |
parent | cf00a2b0667a31484dbee3236ff3ceeaf2772c29 (diff) | |
download | emacs-3ef51158684235d274fc7ce40c4541d3cc891eb8.tar.gz |
(SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
Diffstat (limited to 'src/mac.c')
-rw-r--r-- | src/mac.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) |