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. --- tests/test-execute-main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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