summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-20 13:23:52 +0200
committerBruno Haible <bruno@clisp.org>2023-04-20 13:23:52 +0200
commit5a883444161a75e214a07a664a188b963c1b8c04 (patch)
treee5f316497f446c67c4555f579eb953ea8fba42c3
parentf50fa20d76b2e4fb0020a3bd7e41347424290967 (diff)
downloadgnulib-5a883444161a75e214a07a664a188b963c1b8c04.tar.gz
execute tests: Fix compilation error on mingw (regression 2023-01-17).
* tests/test-execute-main.c (main): Don't use SIGPIPE if it's not defined.
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-execute-main.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 72fac66c13..b3665c5c3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2023-04-20 Bruno Haible <bruno@clisp.org>
+ execute tests: Fix compilation error on mingw (regression 2023-01-17).
+ * tests/test-execute-main.c (main): Don't use SIGPIPE if it's not
+ defined.
+
+2023-04-20 Bruno Haible <bruno@clisp.org>
+
assert-h, verify: Fix compilation error in C++ mode with MSVC 14.30.
* lib/verify.h (_Static_assert): In C++ mode with MSVC 14.1 or newer,
define merely to static_assert.
diff --git a/tests/test-execute-main.c b/tests/test-execute-main.c
index 2088408756..cb799cf883 100644
--- a/tests/test-execute-main.c
+++ b/tests/test-execute-main.c
@@ -67,7 +67,9 @@ main (int argc, char *argv[])
GNU make 4.4: <https://savannah.gnu.org/bugs/index.php?63307>.
It causes the tests 3 and 4 to fail. Work around it by resetting
the signal handler for SIGPIPE to the default. */
+ #ifdef SIGPIPE
signal (SIGPIPE, SIG_DFL);
+ #endif
switch (test)
{