mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user