On May 2, 2009, at 21:25, Michael Bruck wrote:
> If it is a GNU specific thing then assuming that more often than not
> this package is used with glibc I would suggest keeping
> #if !HAVE_UNISTD_H || IS_DARWIN
> rather than listing all variations that have environ in unistd.h.
> As an alternative
Isn't it much easier to write the conditional based on what causes it
rather that what doesn't. unistd.h in _general_ doesn't include
environ. Either write a test for autoconf that tries to use environ
when only unistd.h is included or do the getopt hack:
/* If __GNU_LIBRARY__ is not alre
If it is a GNU specific thing then assuming that more often than not
this package is used with glibc I would suggest keeping
#if !HAVE_UNISTD_H || IS_DARWIN
rather than listing all variations that have environ in unistd.h.
As an alternative a test in ./configure would be a solution.
Michael
On May 2, 2009, at 15:36, Michael Fischer wrote:
> the new version r1589 do not solve the problem,
> becasue the unistd.h looks like:
>
> #define getpagesize() PAGE_SIZE
>
> No information about environ here.
I believe declaring environ in unistd.h is a glibc-ism and on other
systems you have t
Hello,
the new version r1589 do not solve the problem,
becasue the unistd.h looks like:
#define getpagesize() PAGE_SIZE
No information about environ here.
Regards,
Michael
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
http
I committed Zach's fix for these warnings just now.
--
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mai
Hello List,
I have problem to build jim.c under Mac OS X.
Here the old version looks like:
static int Jim_EnvCoreCommand(Jim_Interp *interp, int argc,
Jim_Obj *const *argv)
{
const char *key;
char *val;
if (argc == 1) {
#ifndef _WIN32
extern char **environ;
#endif