unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Harald Maier <harald@maierh.de>
Cc: Nozomu Ando <nand@mac.com>, emacs-devel@gnu.org
Subject: Re: HAVE_SYS_SELECT of sysselect.h
Date: Wed, 04 May 2005 07:45:35 +0200	[thread overview]
Message-ID: <m264xztugw.fsf@gaia.local> (raw)
In-Reply-To: <wly8ayqtpj.wl%mituharu@math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Mon, 02 May 2005 10:53:27 +0900")

YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 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

  parent reply	other threads:[~2005-05-04  5:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 13:51 unload-feature and defcustom Lute Kamstra
2005-04-29 19:02 ` HAVE_SYS_SELECT of sysselect.h Nozomu Ando
2005-05-01 22:43   ` Thien-Thi Nguyen
2005-05-01 23:15     ` Thien-Thi Nguyen
2005-05-02  0:21       ` Nozomu Ando
2005-05-02  1:47         ` Thien-Thi Nguyen
2005-05-02  1:53   ` YAMAMOTO Mitsuharu
2005-05-02  2:44     ` Nozomu Ando
2005-05-04  5:45     ` Harald Maier [this message]
2005-04-30  8:13 ` unload-feature and defcustom David Kastrup
2005-05-01 12:06 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m264xztugw.fsf@gaia.local \
    --to=harald@maierh.de \
    --cc=emacs-devel@gnu.org \
    --cc=nand@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).