From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: Re: patch to build guile CVS on Mac OS X Date: Wed, 07 Jan 2004 08:00:28 +1000 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <87vfno91qb.fsf@zip.com.au> References: <20040106101709.GA27012@Richard-Todds-Computer.local> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073433941 26458 80.91.224.253 (7 Jan 2004 00:05:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 00:05:41 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jan 07 01:05:38 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae1Cc-0000Tw-00 for ; Wed, 07 Jan 2004 01:05:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae23s-0004cd-5I for guile-bugs@m.gmane.org; Tue, 06 Jan 2004 20:00:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ae1fL-0005pf-J0 for bug-guile@gnu.org; Tue, 06 Jan 2004 19:35:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ae1ef-0005Za-So for bug-guile@gnu.org; Tue, 06 Jan 2004 19:35:09 -0500 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae1bl-0004TF-2c for bug-guile@gnu.org; Tue, 06 Jan 2004 19:31:37 -0500 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i06M0fno019031; Wed, 7 Jan 2004 09:00:41 +1100 Original-Received: from localhost (ppp231.dyn11.pacific.net.au [61.8.11.231]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i06M0cxt026181; Wed, 7 Jan 2004 09:00:40 +1100 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1AdzFV-0000Ln-00; Wed, 07 Jan 2004 08:00:29 +1000 Original-To: Richard Todd In-Reply-To: <20040106101709.GA27012@Richard-Todds-Computer.local> (Richard Todd's message of "Tue, 6 Jan 2004 04:17:10 -0600") User-Agent: Gnus/5.1004 (Gnus v5.10.4) Emacs/21.3 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1071 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1071 Richard Todd writes: > > +#if defined(__APPLE__) && defined(__DYNAMIC__) > +#include > +static char ** environ; > +#else > extern char ** environ; > +#endif > > #ifdef HAVE_GRP_H > #include > @@ -1735,6 +1740,10 @@ > void > scm_init_posix () > { > +#if defined(__APPLE__) && defined(__DYNAMIC__) > + environ = *_NSGetEnviron(); > +#endif > + That's really weird. I'd rather not do that if it can be avoided. Surely they can't expect every library that accesses environ to get a system-specific change? Does it work to take the declaration of environ from instead of giving an explicit "extern"? The autoconf way is normally to let the headers do the job where possible. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile