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
openpgp-digital-signature.asc
Description: PGP signature
_______________________________________________ Gnupg-devel mailing list Gnupg-devel@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-devel