diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mac.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -69,7 +69,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 69 | #endif | 69 | #endif |
| 70 | 70 | ||
| 71 | /* The system script code. */ | 71 | /* The system script code. */ |
| 72 | static int mac_system_script_code; | 72 | static EMACS_INT mac_system_script_code; |
| 73 | 73 | ||
| 74 | /* The system locale identifier string. */ | 74 | /* The system locale identifier string. */ |
| 75 | static Lisp_Object Vmac_system_locale; | 75 | static Lisp_Object Vmac_system_locale; |
| @@ -5047,7 +5047,7 @@ mac_try_close_socket (fd) | |||
| 5047 | #if SELECT_USE_CFSOCKET | 5047 | #if SELECT_USE_CFSOCKET |
| 5048 | if (getpid () == mac_emacs_pid && cfsockets_for_select) | 5048 | if (getpid () == mac_emacs_pid && cfsockets_for_select) |
| 5049 | { | 5049 | { |
| 5050 | void *key = (void *) fd; | 5050 | void *key = (void *) (long) fd; |
| 5051 | CFSocketRef socket = | 5051 | CFSocketRef socket = |
| 5052 | (CFSocketRef) CFDictionaryGetValue (cfsockets_for_select, key); | 5052 | (CFSocketRef) CFDictionaryGetValue (cfsockets_for_select, key); |
| 5053 | 5053 | ||
| @@ -5160,7 +5160,7 @@ sys_select (nfds, rfds, wfds, efds, timeout) | |||
| 5160 | for (fd = minfd; fd < nfds; fd++) | 5160 | for (fd = minfd; fd < nfds; fd++) |
| 5161 | if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) | 5161 | if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) |
| 5162 | { | 5162 | { |
| 5163 | void *key = (void *) fd; | 5163 | void *key = (void *) (long) fd; |
| 5164 | CFRunLoopSourceRef source = | 5164 | CFRunLoopSourceRef source = |
| 5165 | (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); | 5165 | (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); |
| 5166 | 5166 | ||
| @@ -5190,7 +5190,7 @@ sys_select (nfds, rfds, wfds, efds, timeout) | |||
| 5190 | for (fd = minfd; fd < nfds; fd++) | 5190 | for (fd = minfd; fd < nfds; fd++) |
| 5191 | if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) | 5191 | if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) |
| 5192 | { | 5192 | { |
| 5193 | void *key = (void *) fd; | 5193 | void *key = (void *) (long) fd; |
| 5194 | CFRunLoopSourceRef source = | 5194 | CFRunLoopSourceRef source = |
| 5195 | (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); | 5195 | (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); |
| 5196 | 5196 | ||