From 0628acecccc4440e667cb44e80b7033a31324c10 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 9 Feb 2022 03:30:22 -0600 Subject: system/m4: Fix build with musl 1.2.3. Fixes #510. --- system/m4/posix-test.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 system/m4/posix-test.patch (limited to 'system/m4/posix-test.patch') diff --git a/system/m4/posix-test.patch b/system/m4/posix-test.patch new file mode 100644 index 000000000..058c85c6f --- /dev/null +++ b/system/m4/posix-test.patch @@ -0,0 +1,18 @@ +This behaviour does not pass on *this* platform. + +--- m4-1.4.19/tests/test-posix_spawn_file_actions_addclose.c.old 2021-04-22 15:28:47.000000000 -0500 ++++ m4-1.4.19/tests/test-posix_spawn_file_actions_addclose.c 2022-02-09 03:27:59.030000000 -0600 +@@ -54,13 +54,6 @@ + errno = 0; + ASSERT (posix_spawn_file_actions_addclose (&actions, -1) == EBADF); + } +- /* This behaviour is not mandated by POSIX, but happens to pass on all +- platforms. */ +- { +- int bad_fd = big_fd (); +- errno = 0; +- ASSERT (posix_spawn_file_actions_addclose (&actions, bad_fd) == EBADF); +- } + + posix_spawn_file_actions_destroy (&actions); + -- cgit v1.2.3-60-g2f50