mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Ensure sockaddr_any is future proof for new socket addresse sizes on
platforms where sockaddr_storage is provided
This commit is contained in:
parent
5773700b93
commit
24653e63c3
4 changed files with 74 additions and 5 deletions
|
@ -38,6 +38,9 @@ typedef union {
|
|||
#ifndef _WIN32
|
||||
struct sockaddr_un u;
|
||||
#endif
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
|
||||
struct sockaddr_storage m;
|
||||
#endif
|
||||
} sockaddr_any;
|
||||
|
||||
#define SOCKIVARS \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue