From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: HAVE_SYS_SELECT of sysselect.h
Date: Mon, 02 May 2005 10:53:27 +0900 [thread overview]
Message-ID: <wly8ayqtpj.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <86pswdcsp7.fsf@almi.jk.homeunix.org>
>>>>> On Sat, 30 Apr 2005 04:02:12 +0900, Nozomu Ando <nand@mac.com> said:
> -#ifdef HAVE_SYS_SELECT
> +#ifdef HAVE_SYS_SELECT_H
I can't test it with Mac OS X 10.4 Tiger now, but I think this is the
best way to solve the "Can't compile on Tiger" problem.
But with the above change, I could not compile xmenu.c (for X11 build)
or mac.c (for Carbon build) at least when compiling with the GCC
option "-g" on Mac OS X 10.3.9.
In file included from /usr/include/mach/mach_init.h:76,
from /usr/include/mach/mach.h:64,
from /usr/include/sys/event.h:154,
from /usr/include/sys/select.h:71,
from /SOME/WHERE/emacs/src/sysselect.h:22,
from /SOME/WHERE/emacs/src/mac.c:31:
/usr/include/mach/mach_traps.h:103: error: conflicting types for `emacs_init_process'
/SOME/WHERE/emacs/src/lisp.h:3031: error: previous declaration of `emacs_init_process'
In file included from /usr/include/mach/mach_init.h:76,
from /usr/include/mach/mach.h:64,
from /usr/include/sys/event.h:154,
from /usr/include/sys/select.h:71,
from /SOME/WHERE/emacs/src/sysselect.h:22,
from /SOME/WHERE/emacs/src/xmenu.c:51:
/usr/include/mach/mach_traps.h:103: error: conflicting types for `emacs_init_process'
/SOME/WHERE/emacs/src/lisp.h:3031: error: previous declaration of `emacs_init_process'
The following patch seems to fix it, but is there any more elegant
way?
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
*** 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
next prev parent reply other threads:[~2005-05-02 1:53 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 [this message]
2005-05-02 2:44 ` Nozomu Ando
2005-05-04 5:45 ` Harald Maier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wly8ayqtpj.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.