]> Savannah Git Hosting - gnulib.git/commitdiff
execute tests: Fix compilation error on mingw (regression 2023-01-17).
authorBruno Haible <bruno@clisp.org>
Thu, 20 Apr 2023 11:23:52 +0000 (13:23 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Apr 2023 01:51:48 +0000 (03:51 +0200)
* tests/test-execute-main.c (main): Don't use SIGPIPE if it's not
defined.

ChangeLog
tests/test-execute-main.c

index 7400ecc46d0785331851bb29350e3603e30ce896..3a8a3be8b029ca4140e50c4ebd5b0f60dfd67ebe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 2088408756d6d9e5dfc299177215da3c99361534..cb799cf8837d590d12845cd562790e00590eae3a 100644 (file)
@@ -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)
     {