From 9b20ca275dba758a194073936cde7c95311bd51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 23 Jan 2023 22:52:47 +0100 Subject: [PATCH] Verify 'W_EXITCODE' only when we provide our own definition. Fixes . Reported by lloda and Greg Troxel . 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. --- libguile/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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