emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HAVE_SYS_SELECT of sysselect.h


From: Harald Maier
Subject: Re: HAVE_SYS_SELECT of sysselect.h
Date: Wed, 04 May 2005 07:45:35 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

YAMAMOTO Mitsuharu <address@hidden> writes:

> The following patch seems to fix it, but is there any more elegant
> way?

I don't think that the file sysselect.h changes very often so the fix
herein seems to me the best. The other suggestion to change the name
of 'init_process' would cause more trouble because the files emacs.c,
process.c, and lisp.h seems to change very often. 

Before I saw the patch I changed the return type of init_process from
VOID to INT. This worked too for me. But this means too to change the
files lisp.h and process.c.

Harald

>
> *** sysselect.h.~1.4.~        Mon May  2 08:55:47 2005
> --- sysselect.h       Mon May  2 10:48:14 2005
> ***************
> *** 19,25 ****
> --- 19,31 ----
>   Boston, MA 02111-1307, USA.  */
>   
>   #ifdef HAVE_SYS_SELECT_H
> + #if defined (DARWIN) || defined (MAC_OSX)
> + #undef init_process
> + #endif
>   #include <sys/select.h>
> + #if defined (DARWIN) || defined (MAC_OSX)
> + #define init_process emacs_init_process
> + #endif
>   #endif
>   
>   #ifdef FD_SET




reply via email to

[Prev in Thread] Current Thread [Next in Thread]