# HG changeset patch # User Bruno Haible # Date 1537294718 -7200 # Node ID b7ec445e40def2abbb7ad2301815aeac1d507007 # Parent 7245e73971d44c6435a239ecdde96ce8fc8fc06a 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 -r 7245e73971d4 -r b7ec445e40de ChangeLog --- a/ChangeLog Sun Sep 16 14:41:36 2018 -0700 +++ b/ChangeLog Tue Sep 18 20:18:38 2018 +0200 @@ -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 -r 7245e73971d4 -r b7ec445e40de modules/posix_spawn-tests --- a/modules/posix_spawn-tests Sun Sep 16 14:41:36 2018 -0700 +++ b/modules/posix_spawn-tests Tue Sep 18 20:18:38 2018 +0200 @@ -9,6 +9,7 @@ stdbool unistd sys_wait +environ configure.ac: AC_EGREP_CPP([notposix], [[ diff -r 7245e73971d4 -r b7ec445e40de modules/posix_spawnp-tests --- a/modules/posix_spawnp-tests Sun Sep 16 14:41:36 2018 -0700 +++ b/modules/posix_spawnp-tests Tue Sep 18 20:18:38 2018 +0200 @@ -15,11 +15,12 @@ posix_spawnattr_setsigmask posix_spawnattr_setflags posix_spawnattr_destroy -sigprocmask stdbool unistd sys_wait dup +environ +sigprocmask configure.ac: AC_EGREP_CPP([notposix], [[ diff -r 7245e73971d4 -r b7ec445e40de tests/test-posix_spawn1.c --- a/tests/test-posix_spawn1.c Sun Sep 16 14:41:36 2018 -0700 +++ b/tests/test-posix_spawn1.c Tue Sep 18 20:18:38 2018 +0200 @@ -53,8 +53,6 @@ #include #include -extern char **environ; - #define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh" static int diff -r 7245e73971d4 -r b7ec445e40de tests/test-posix_spawn2.c --- a/tests/test-posix_spawn2.c Sun Sep 16 14:41:36 2018 -0700 +++ b/tests/test-posix_spawn2.c Tue Sep 18 20:18:38 2018 +0200 @@ -31,8 +31,6 @@ #include #include -extern char **environ; - #define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh" static int diff -r 7245e73971d4 -r b7ec445e40de tests/test-posix_spawn3.c --- a/tests/test-posix_spawn3.c Sun Sep 16 14:41:36 2018 -0700 +++ b/tests/test-posix_spawn3.c Tue Sep 18 20:18:38 2018 +0200 @@ -38,8 +38,6 @@ #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 -r 7245e73971d4 -r b7ec445e40de tests/test-posix_spawn4.c --- a/tests/test-posix_spawn4.c Sun Sep 16 14:41:36 2018 -0700 +++ b/tests/test-posix_spawn4.c Tue Sep 18 20:18:38 2018 +0200 @@ -31,8 +31,6 @@ #include #include -extern char **environ; - static int fd_safer (int fd) {