]> Savannah Git Hosting - gnulib.git/commitdiff
posix_spawn tests: Fix link error on 64-bit Cygwin.
authorBruno Haible <bruno@clisp.org>
Tue, 18 Sep 2018 18:18:38 +0000 (20:18 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 18 Sep 2018 18:23:21 +0000 (20:23 +0200)
* 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.

ChangeLog
modules/posix_spawn-tests
modules/posix_spawnp-tests
tests/test-posix_spawn1.c
tests/test-posix_spawn2.c
tests/test-posix_spawn3.c
tests/test-posix_spawn4.c

index c796ecdda68411cb8750e529885f1701ebdf1f75..9fe95965442cabeaf6c5f7c7d595f7e78174086b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-09-18  Bruno Haible  <bruno@clisp.org>
+
+       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  <eggert@cs.ucla.edu>
 
        timespec: new function current_timespec
index 8795206a70c3c2b0112896ad57a6ccce7d2a3d2d..55c4efd7902c7ea6bca322289e65349a6023542e 100644 (file)
@@ -9,6 +9,7 @@ posix_spawn_file_actions_destroy
 stdbool
 unistd
 sys_wait
+environ
 
 configure.ac:
 AC_EGREP_CPP([notposix], [[
index 6363585d23b8b18a1203171012a3db8c6952f729..bce8be77772b34f50632a68184eaa86be03932a0 100644 (file)
@@ -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], [[
index fad02377ae9395036e9ccc6a33d76251d1bf0731..6b6c864f4d8cc6333f3007ac2c4f1eb8d1882db5 100644 (file)
@@ -53,8 +53,6 @@ SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int,
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh"
 
 static int
index ed9567adb28a30c6d8685df32f4c292b0be4df38..d9f29a111585c8cf4809f92cb9b964e60bae1497 100644 (file)
@@ -31,8 +31,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh"
 
 static int
index 1d5c47f646982fd7acfbba834b953062efc7ab8b..c35bd972c8d8628bdb135281dc8411b3523a8c0f 100644 (file)
@@ -38,8 +38,6 @@ SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *,
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn3"
 #define DATA_FILENAME "t!#$%&'()*+,-;=?@[\\]^_`{|}~.tmp"
 /* On Cygwin, '*' '?' '\\' '|' cannot be used in file names.  */
index 79308b9ad68836560dec548dde53bf2cc9f647c7..14b29fb48409c1edeeb30f1314d3b6693c69bb77 100644 (file)
@@ -31,8 +31,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 static int
 fd_safer (int fd)
 {