src/newlib ChangeLog libc/posix/execvp.c libc/ ...
Corinna Vinschen
vinschen@cygnus.com
Fri Aug 25 10:33:00 GMT 2000
jjohnstn@sourceware.cygnus.com wrote:
>
> CVSROOT: /cvs/src
> Module name: src
> Changes by: jjohnstn@sourceware.cygnus.com 2000-08-24 11:51:09
> [...]
> Log message:
> 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
>
> * libc/stdlib/system.c: included unistd.h for "execve" prototype,
> reent.h for "_fork_r" and "_wait_r" prototypes.
> (do_system): changed extern char *environ[] to POSIX-friendly
> extern char **environ.
Did anybody of you notice that this change broke building on Cygwin?
unistd.h defines environ as extern char **. While the appropriate
change was made to the unix do_system() call, nobody cared for the
Cygwin part:
Index: system.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/system.c,v
retrieving revision 1.2
diff -u -p -r1.2 system.c
--- system.c 2000/08/24 18:51:09 1.2
+++ system.c 2000/08/25 17:32:07
@@ -147,7 +147,7 @@ do_system (ptr, s)
{
char *argv[4];
int pid, status;
- extern char *environ[];
+ extern char **environ;
argv[0] = "sh";
argv[1] = "-c";
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com
More information about the Newlib
mailing list