From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: OSX breakage Date: Tue, 29 Nov 2011 13:00:46 +0800 Message-ID: <871usrh69t.fsf@gnu.org> References: <4ED3AA79.8060605@lassnig.net> <838vn06swa.fsf@gnu.org> <4ED3DA30.1050006@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322542866 19294 80.91.229.12 (29 Nov 2011 05:01:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 05:01:06 +0000 (UTC) Cc: mario@lassnig.net, Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 06:01:02 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVFoT-0000zC-SN for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 06:01:02 +0100 Original-Received: from localhost ([::1]:43523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVFoT-0006eA-3l for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 00:01:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVFoQ-0006dq-6x for emacs-devel@gnu.org; Tue, 29 Nov 2011 00:00:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVFoO-0001n5-H3 for emacs-devel@gnu.org; Tue, 29 Nov 2011 00:00:58 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:41567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVFoO-0001mp-F5 for emacs-devel@gnu.org; Tue, 29 Nov 2011 00:00:56 -0500 Original-Received: from [155.69.17.40] (port=46487 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RVFoL-0004IB-QL; Tue, 29 Nov 2011 00:00:54 -0500 In-Reply-To: <4ED3DA30.1050006@cs.ucla.edu> (Paul Eggert's message of "Mon, 28 Nov 2011 11:00:00 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146335 Archived-At: Paul Eggert writes: > On 11/28/11 09:47, Eli Zaretskii wrote: >> Is there really no system header on OS X that declares `environ'? I'm >> surprised. > > That's the old, old Unix tradition, alas. It's not just OS X. > The "right" way to fix it is to declare "extern char **environ;" > if it's not already declared. There's a Gnulib module for that, > which I can look into -- it puts the declaration into a substitute > unistd.h if unistd.h doesn't already declare it. As Eli pointed out in the discussion on bug#10155, there is already code in lib/unistd.in.h that apparently ought to handle this, but itsn't working. I will delay the pretest until this problem is fixed.