GNU bug report logs - #10155
23.3; HEAD broken by recent commit for emacsclient

Previous Next

Package: emacs;

Reported by: merlyn <at> stonehenge.com (Randal L. Schwartz)

Date: Mon, 28 Nov 2011 17:31:02 UTC

Severity: normal

Found in version 23.3

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 10155 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Nicolaescu <dann <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 10155 <at> debbugs.gnu.org, merlyn <at> stonehenge.com
Subject: Re: bug#10155: 23.3; HEAD broken by recent commit for emacsclient
Date: Mon, 28 Nov 2011 20:54:54 +0200
> From: Dan Nicolaescu <dann <at> gnu.org>
> Cc: merlyn <at> stonehenge.com (Randal L. Schwartz),  10155 <at> 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.




This bug report was last modified 13 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.