Hi, Greg Troxel <g...@lexort.com> skribis:
> lloda <ll...@sarc.name> writes: > >> This looks like https://debbugs.gnu.org/60971 >> <https://debbugs.gnu.org/60971> on mac os. > > Yes, it does. > > My quick reaction is that if the POSIX-required macros operation on > system types that might be struct, then faking up ints for testing is > unsound. > > Maybe only do verify if guile has to define macros, and don't try to > test the OS? So something like the patch below? Thanks, Ludo’.
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>