From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.devel Subject: Re: HAVE_SYS_SELECT of sysselect.h Date: Wed, 04 May 2005 07:45:35 +0200 Message-ID: References: <87ll71y9le.fsf@xs4all.nl> <86pswdcsp7.fsf@almi.jk.homeunix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115250768 28380 80.91.229.2 (4 May 2005 23:52:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 23:52:48 +0000 (UTC) Cc: Nozomu Ando , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 01:52:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTTf9-0000QO-E4 for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 01:52:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTTmY-0004Sm-HE for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 19:59:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DTPqB-0007ZQ-8j for emacs-devel@gnu.org; Wed, 04 May 2005 15:47:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DTPq9-0007Yg-Mr for emacs-devel@gnu.org; Wed, 04 May 2005 15:47:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTPq9-0007UL-6U for emacs-devel@gnu.org; Wed, 04 May 2005 15:47:25 -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 1DTPty-0005Jt-Cx for emacs-devel@gnu.org; Wed, 04 May 2005 15:51:22 -0400 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by mx20.gnu.org with esmtp (Exim 4.34) id 1DTCq2-0006RG-0N for emacs-devel@gnu.org; Wed, 04 May 2005 01:54:26 -0400 Original-Received: from p54990340.dip0.t-ipconnect.de[84.153.3.64] (helo=ate.maierh) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwtQ-1DTCoy3bIK-0004UE; Wed, 04 May 2005 07:53:20 +0200 Original-Received: from gaia.local (unknown [192.168.1.95]) by ate.maierh (Postfix) with ESMTP id A4A1919CA4; Wed, 4 May 2005 07:53:09 +0200 (CEST) Original-Received: by gaia.local (Postfix, from userid 501) id C82AE172CB0; Wed, 4 May 2005 07:45:36 +0200 (CEST) Original-To: YAMAMOTO Mitsuharu In-Reply-To: (YAMAMOTO Mitsuharu's message of "Mon, 02 May 2005 10:53:27 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:7f9705e6678292fb4e27195dea438aa3 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:36673 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36673 YAMAMOTO Mitsuharu 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 > + #if defined (DARWIN) || defined (MAC_OSX) > + #define init_process emacs_init_process > + #endif > #endif > > #ifdef FD_SET