diff options
author | DJ Delorie <dj@redhat.com> | 2000-08-02 20:28:18 +0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-08-02 20:28:18 +0400 |
commit | 4c8d72ded51ac22172d4f2d0250ada6b0dd624ff (patch) | |
tree | 4573a70b613646456bd4fed93293c6355566c678 /winsup/cygwin/spawn.cc | |
parent | ad8dea13f05b51769c9bef7e414f654588971c10 (diff) |
* winsup.h: take out protections of environ, errno, allow C use
* *.cc: put winsup.h before other headers (for __INSIDE_CYGWIN__);
use cur_environ() instead of just environ
* times.cc: remove import protections
* glob.c: add winsup.h
* localtime.c: ditto
* smallprint.c: ditto
* Makefile.in: don't __INSIDE_CYGWIN__ as it messes up profiling.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 3c12b7057..7d3063c31 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -8,6 +8,7 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +#include "winsup.h" #include <stdlib.h> #include <stdarg.h> #include <unistd.h> @@ -15,7 +16,6 @@ details. */ #include <sys/wait.h> #include <errno.h> #include <limits.h> -#include "winsup.h" #include <wingdi.h> #include <winuser.h> #include <ctype.h> @@ -921,7 +921,7 @@ spawnl (int mode, const char *path, const char *arg0, ...) va_end (args); - return _spawnve (NULL, mode, path, (char * const *) argv, environ); + return _spawnve (NULL, mode, path, (char * const *) argv, cur_environ ()); } extern "C" @@ -966,7 +966,7 @@ spawnlp (int mode, const char *path, const char *arg0, ...) va_end (args); - return spawnvpe (mode, path, (char * const *) argv, environ); + return spawnvpe (mode, path, (char * const *) argv, cur_environ ()); } extern "C" @@ -996,7 +996,7 @@ extern "C" int spawnv (int mode, const char *path, const char * const *argv) { - return _spawnve (NULL, mode, path, argv, environ); + return _spawnve (NULL, mode, path, argv, cur_environ ()); } extern "C" @@ -1011,7 +1011,7 @@ extern "C" int spawnvp (int mode, const char *path, const char * const *argv) { - return spawnvpe (mode, path, argv, environ); + return spawnvpe (mode, path, argv, cur_environ ()); } extern "C" |