From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10155: 23.3; HEAD broken by recent commit for emacsclient Date: Mon, 28 Nov 2011 20:54:54 +0200 Message-ID: <83y5v05b7l.fsf@gnu.org> References: <86lir05fms.fsf@red.stonehenge.com> <837h2k6ryq.fsf@gnu.org> <864nxo5d44.fsf@red.stonehenge.com> <8339d86qiq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322506517 13106 80.91.229.12 (28 Nov 2011 18:55:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 18:55:17 +0000 (UTC) Cc: 10155@debbugs.gnu.org, merlyn@stonehenge.com To: Dan Nicolaescu , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 19:55:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1RV6MC-0004mS-18 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2011 19:55:12 +0100 Original-Received: from localhost ([::1]:47027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV6MB-0002Ll-Fu for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2011 13:55:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV6M8-0002JE-Ll for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 13:55:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV6M7-0002tW-6E for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 13:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV6M7-0002sa-45 for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 13:55:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RV6Nx-0001ns-V9 for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 13:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2011 18:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10155 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10155-submit@debbugs.gnu.org id=B10155.13225066106915 (code B ref 10155); Mon, 28 Nov 2011 18:57:01 +0000 Original-Received: (at 10155) by debbugs.gnu.org; 28 Nov 2011 18:56:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RV6Nm-0001nU-9h for submit@debbugs.gnu.org; Mon, 28 Nov 2011 13:56:50 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RV6Nj-0001nL-EE for 10155@debbugs.gnu.org; Mon, 28 Nov 2011 13:56:48 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LVD00D00W0CHT00@a-mtaout20.012.net.il> for 10155@debbugs.gnu.org; Mon, 28 Nov 2011 20:54:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.142.228]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVD00B44WJCE4U0@a-mtaout20.012.net.il>; Mon, 28 Nov 2011 20:54:48 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Nov 2011 13:57:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54381 Archived-At: > From: Dan Nicolaescu > Cc: merlyn@stonehenge.com (Randal L. Schwartz), 10155@debbugs.gnu.org > Date: Mon, 28 Nov 2011 13:44:01 -0500 > > > #if defined __APPLE__ && defined __MACH__ > > extern char **environ; > > #endif > > Can this be done in gnulib? There's something there already, in lib/unistd.in.h: #if @GNULIB_ENVIRON@ # if !@HAVE_DECL_ENVIRON@ /* Set of environment variables and values. An array of strings of the form "VARIABLE=VALUE", terminated with a NULL. */ # if defined __APPLE__ && defined __MACH__ # include # define environ (*_NSGetEnviron ()) # else So the question is, why doesn't this DTRT? Paul, can you help here? I don't have access to OS X to try.