libphobos: Fix struct layout of addrinfo on sparc-*-solaris*

Comparing the struct addrinfo declarations in <netdb.h>

    struct addrinfo {
	...
    #ifdef __sparcv9
        int _ai_pad;
    #endif /* __sparcv9 */
	...
    };

In the extern(C) core.sys bindings, there's a mismatch here; the system
version has no _aid_pad member on 32-bit SPARC.

libphobos/ChangeLog:

	PR d/90718
	* libdruntime/core/sys/posix/netdb.d (Solaris): Include _ai_pad member
	in struct addrinfo only when targeting SPARC64.
This commit is contained in:
Iain Buclaw
2020-04-27 23:51:50 +02:00
parent 1f0eba390f
commit 253b6edd2f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2020-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/90718
* libdruntime/core/sys/posix/netdb.d (Solaris): Include _ai_pad member
in struct addrinfo only when targeting SPARC64.
2020-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/90719

View File

@@ -743,9 +743,7 @@ else version (Solaris)
int ai_socktype;
int ai_protocol;
version (SPARC)
int _ai_pad;
else version (SPARC64)
version (SPARC64)
int _ai_pad;
socklen_t ai_addrlen;