[PATCH libgpg-error] Add support for IBM z/OS
Werner Koch
wk at gnupg.org
Wed Jun 11 09:47:53 CEST 2025
Hi!
On Tue, 10 Jun 2025 15:15, Sachin T said:
> +#if defined(__MVS__)
> + if (socketpair (AF_UNIX, SOCK_STREAM, 0, filedes) == -1)
> +#else
> if (socketpair (AF_LOCAL, SOCK_STREAM, 0, filedes) == -1)
> +#endif
AF_UNIX is the legacy name for AF_LOCAL and thus should share the same
value. The configure script should thus detect a missing AF_LOCAL and
redefine it to AF_UNIX. This way you don't need to clobber the code
with cpp conditionals. This is the autoconf way of doing things.
However, sometimes it is useful to diretcly test for teh syste, In
particialr for Windows we need special code at some palces and for that
we use W32_SYSTEM. I would also suggest to define MVS_SYSTEM so that we
don't need to directly use __MVS__.
Please see also Jacob's comments.
Shalom-Salam,
Werner
--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20250611/f9447de2/attachment.sig>
More information about the Gnupg-devel
mailing list