YAMAMOTO Mitsuharu <[EMAIL PROTECTED]> 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel