summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-23 22:52:47 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-23 22:52:47 +0100
commit9b20ca275dba758a194073936cde7c95311bd51e (patch)
tree82882eb3d21f8d211663600e89dccda595f4e3b8
parent2e1ba78c3019ede8f8ae7eaf1a740d9fd8dcf388 (diff)
downloadguile-9b20ca275dba758a194073936cde7c95311bd51e.tar.gz
Verify 'W_EXITCODE' only when we provide our own definition.v3.0.9
Fixes <https://bugs.gnu.org/60971>. Reported by lloda <lloda@sarc.name> and Greg Troxel <gdt@lexort.com>. On macOS and NetBSD, 'WEXITSTATUS' expects an lvalue so the expression passed to 'verify' would be invalid. * libguile/posix.c: Move 'verify' assertion within #ifdef.
-rw-r--r--libguile/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/posix.c b/libguile/posix.c
index 74c743119..0b1fe2637 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -105,8 +105,8 @@
# else
# define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
# endif
-#endif
verify (WEXITSTATUS (W_EXITCODE (127, 0)) == 127);
+#endif
#include <signal.h>