Ensure sockaddr_any is future proof for new socket addresse sizes on

platforms where sockaddr_storage is provided
This commit is contained in:
Richard Frith-Macdonald 2023-09-24 12:26:59 +01:00
parent 5773700b93
commit 24653e63c3
4 changed files with 74 additions and 5 deletions

View file

@ -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 \