From 5a883444161a75e214a07a664a188b963c1b8c04 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 20 Apr 2023 13:23:52 +0200 Subject: 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. --- ChangeLog | 6 ++++++ tests/test-execute-main.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 72fac66c13..b3665c5c3b 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) { -- cgit v1.2.1