unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dan Nicolaescu <dann@gnu.org>, Paul Eggert <eggert@cs.ucla.edu>
Cc: 10155@debbugs.gnu.org, merlyn@stonehenge.com
Subject: bug#10155: 23.3; HEAD broken by recent commit for emacsclient
Date: Mon, 28 Nov 2011 20:54:54 +0200	[thread overview]
Message-ID: <83y5v05b7l.fsf@gnu.org> (raw)
In-Reply-To: <yxqvcq4w0i6.fsf@fencepost.gnu.org>

> From: Dan Nicolaescu <dann@gnu.org>
> 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 <crt_externs.h>
  #   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.





      reply	other threads:[~2011-11-28 18:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 17:19 bug#10155: 23.3; HEAD broken by recent commit for emacsclient Randal L. Schwartz
2011-11-28 18:07 ` Eli Zaretskii
2011-11-28 18:13   ` Randal L. Schwartz
2011-11-28 18:38     ` Eli Zaretskii
2011-11-28 18:40       ` Randal L. Schwartz
2011-11-28 18:44       ` Dan Nicolaescu
2011-11-28 18:54         ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y5v05b7l.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10155@debbugs.gnu.org \
    --cc=dann@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=merlyn@stonehenge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).