OpenSSL 1.1 pre 3 compilation errors on Solaris

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OpenSSL 1.1 pre 3 compilation errors on Solaris

Erik Forsberg-11

do not use any variable, structure named "sun"
When compiling on any SunOS/Solaris platform, preprocessor replaces it with 1

This fragment in crypto/bio/bio_lcl.h breaks all Solaris builds using cc

union bio_addr_st {
    struct sockaddr sa;
# ifdef AF_INET6
    struct sockaddr_in6 sin6;
# endif
    struct sockaddr_in sin;
# ifdef AF_UNIX
    struct sockaddr_un sun;
# endif
};

Suggest renaming both the sin and sun members to s_in and s_un
for readability.

crypto/bio/b_addr.c needs corresponding changes.

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev