From: Bruno Haible Date: Tue, 18 Sep 2018 18:18:38 +0000 (+0200) Subject: posix_spawn tests: Fix link error on 64-bit Cygwin. X-Git-Tag: v1.0~5415 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0edc0a1297a8900a41930108f8fa0904e1cb1e37;p=gnulib.git posix_spawn tests: Fix link error on 64-bit Cygwin. * tests/test-posix_spawn1.c (environ): Remove declaration. * tests/test-posix_spawn2.c (environ): Likewise. * tests/test-posix_spawn3.c (environ): Likewise. * tests/test-posix_spawn4.c (environ): Likewise. * modules/posix_spawn-tests (Depends-on): Add 'environ'. * modules/posix_spawnp-tests (Depends-on): Likewise. --- diff --git a/ChangeLog b/ChangeLog index c796ecdda6..9fe9596544 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2018-09-18 Bruno Haible + + posix_spawn tests: Fix link error on 64-bit Cygwin. + * tests/test-posix_spawn1.c (environ): Remove declaration. + * tests/test-posix_spawn2.c (environ): Likewise. + * tests/test-posix_spawn3.c (environ): Likewise. + * tests/test-posix_spawn4.c (environ): Likewise. + * modules/posix_spawn-tests (Depends-on): Add 'environ'. + * modules/posix_spawnp-tests (Depends-on): Likewise. + 2018-09-16 Paul Eggert timespec: new function current_timespec diff --git a/modules/posix_spawn-tests b/modules/posix_spawn-tests index 8795206a70..55c4efd790 100644 --- a/modules/posix_spawn-tests +++ b/modules/posix_spawn-tests @@ -9,6 +9,7 @@ posix_spawn_file_actions_destroy stdbool unistd sys_wait +environ configure.ac: AC_EGREP_CPP([notposix], [[ diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests index 6363585d23..bce8be7777 100644 --- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -15,11 +15,12 @@ posix_spawnattr_init posix_spawnattr_setsigmask posix_spawnattr_setflags posix_spawnattr_destroy -sigprocmask stdbool unistd sys_wait dup +environ +sigprocmask configure.ac: AC_EGREP_CPP([notposix], [[ diff --git a/tests/test-posix_spawn1.c b/tests/test-posix_spawn1.c index fad02377ae..6b6c864f4d 100644 --- a/tests/test-posix_spawn1.c +++ b/tests/test-posix_spawn1.c @@ -53,8 +53,6 @@ SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int, #include #include -extern char **environ; - #define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh" static int diff --git a/tests/test-posix_spawn2.c b/tests/test-posix_spawn2.c index ed9567adb2..d9f29a1115 100644 --- a/tests/test-posix_spawn2.c +++ b/tests/test-posix_spawn2.c @@ -31,8 +31,6 @@ #include #include -extern char **environ; - #define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh" static int diff --git a/tests/test-posix_spawn3.c b/tests/test-posix_spawn3.c index 1d5c47f646..c35bd972c8 100644 --- a/tests/test-posix_spawn3.c +++ b/tests/test-posix_spawn3.c @@ -38,8 +38,6 @@ SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *, #include #include -extern char **environ; - #define CHILD_PROGRAM_FILENAME "test-posix_spawn3" #define DATA_FILENAME "t!#$%&'()*+,-;=?@[\\]^_`{|}~.tmp" /* On Cygwin, '*' '?' '\\' '|' cannot be used in file names. */ diff --git a/tests/test-posix_spawn4.c b/tests/test-posix_spawn4.c index 79308b9ad6..14b29fb484 100644 --- a/tests/test-posix_spawn4.c +++ b/tests/test-posix_spawn4.c @@ -31,8 +31,6 @@ #include #include -extern char **environ; - static int fd_safer (int fd) {