#endif
/* The system script code. */
-static int mac_system_script_code;
+static EMACS_INT mac_system_script_code;
/* The system locale identifier string. */
static Lisp_Object Vmac_system_locale;
#if SELECT_USE_CFSOCKET
if (getpid () == mac_emacs_pid && cfsockets_for_select)
{
- void *key = (void *) fd;
+ void *key = (void *) (long) fd;
CFSocketRef socket =
(CFSocketRef) CFDictionaryGetValue (cfsockets_for_select, key);
for (fd = minfd; fd < nfds; fd++)
if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds)))
{
- void *key = (void *) fd;
+ void *key = (void *) (long) fd;
CFRunLoopSourceRef source =
(CFRunLoopSourceRef) CFDictionaryGetValue (sources, key);
for (fd = minfd; fd < nfds; fd++)
if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds)))
{
- void *key = (void *) fd;
+ void *key = (void *) (long) fd;
CFRunLoopSourceRef source =
(CFRunLoopSourceRef) CFDictionaryGetValue (sources, key);