bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10155: 23.3; HEAD broken by recent commit for emacsclient


From: Eli Zaretskii
Subject: bug#10155: 23.3; HEAD broken by recent commit for emacsclient
Date: Mon, 28 Nov 2011 20:54:54 +0200

> From: Dan Nicolaescu <address@hidden>
> Cc: address@hidden (Randal L. Schwartz),  address@hidden
> 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 address@hidden@
  /* 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 via email to

[Prev in Thread] Current Thread [Next in Thread]