changed configure.ac to check the offset of sa_family in struct sockaddr

This commit is contained in:
2018-02-01 09:34:12 +00:00
parent b7e540d6cf
commit 46cd39cabb
5 changed files with 65 additions and 2 deletions

View File

@ -106,7 +106,7 @@ typedef union sockaddr_t sockaddr_t;
#endif
*/
#define FAMILY(x) (((qse_skad_t*)x)->u.family)
#define FAMILY(x) (((qse_skad_t*)x)->u.sa.family)
static QSE_INLINE int skad_to_nwad (const sockaddr_t* skad, qse_nwad_t* nwad)
{