From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: HAVE_SYS_SELECT of sysselect.h Date: Mon, 02 May 2005 10:53:27 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87ll71y9le.fsf@xs4all.nl> <86pswdcsp7.fsf@almi.jk.homeunix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1115066957 23322 80.91.229.2 (2 May 2005 20:49:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 May 2005 20:49:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 22:49:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DShon-0005KO-9G for ged-emacs-devel@m.gmane.org; Mon, 02 May 2005 22:47:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DShvl-0000dE-FB for ged-emacs-devel@m.gmane.org; Mon, 02 May 2005 16:54:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSfpu-0000nI-JO for emacs-devel@gnu.org; Mon, 02 May 2005 14:40:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSfo0-0008Im-Pi for emacs-devel@gnu.org; Mon, 02 May 2005 14:38:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSfiF-0005Be-VY for emacs-devel@gnu.org; Mon, 02 May 2005 14:32:12 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1DSfOm-0003iQ-6C for emacs-devel@gnu.org; Mon, 02 May 2005 14:12:04 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by mx20.gnu.org with esmtp (Exim 4.34) id 1DSQ9G-0000IJ-4E for emacs-devel@gnu.org; Sun, 01 May 2005 21:55:02 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 0CCB61A63BE; Mon, 2 May 2005 10:53:28 +0900 (JST) Original-To: Nozomu Ando In-Reply-To: <86pswdcsp7.fsf@almi.jk.homeunix.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36602 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36602 >>>>> On Sat, 30 Apr 2005 04:02:12 +0900, Nozomu Ando 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 + #if defined (DARWIN) || defined (MAC_OSX) + #define init_process emacs_init_process + #endif #endif #ifdef FD_SET