Path: blob/main/core/openssl/src/patches/00-af-unix.patch
1067 views
This is a fix for a bug in the openssl build system. TODO: I will submit an upstream PR.1Everywhere else in the source they do #ifdef AF_UNIX, but they missed exactly one spot.23diff --git a/apps/lib/s_socket.c b/apps/lib/s_socket.c4index 059afe4..4b75134 1006445--- a/apps/lib/s_socket.c6+++ b/apps/lib/s_socket.c7@@ -179,7 +179,10 @@ int init_client(int *sock, const char *host, const char *port,8BIO_ADDRINFO_family(res) == AF_INET6 ? "IPv6 " :9#endif10BIO_ADDRINFO_family(res) == AF_INET ? "IPv4 " :11- BIO_ADDRINFO_family(res) == AF_UNIX ? "unix " : "",12+#ifdef AF_UNIX13+ BIO_ADDRINFO_family(res) == AF_UNIX ? "unix " :14+#endif15+ "",16bindhost != NULL ? bindhost : "",17bindport != NULL ? ":" : "",18bindport != NULL ? bindport : "");192021