From: Bruno Haible Date: Thu, 20 Apr 2023 11:23:52 +0000 (+0200) Subject: execute tests: Fix compilation error on mingw (regression 2023-01-17). X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=47ad68b5d191813392c9218a270f3d151d8e5ff9;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 7400ecc46d..3a8a3be8b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-20 Bruno Haible + + 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 assert-h, verify: Fix compilation error in C++ mode with MSVC 14.30. 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: . 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) {