diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-12-06 17:49:59 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-12-06 17:49:59 +0000 |
commit | 9a07b93cb3f5ab210485e88f6a476dbceb08bfaf (patch) | |
tree | 3c70876add6f6d99a55f0e9034aad08b2ce595ad /includes.h | |
parent | a4bf09e7b929dbd61686783641b98f0b30c907f0 (diff) |
* workaround for systems such as glibc 2.1 that have
sockaddr_storage.__ss_family rather than sockaddr_storage.ss_family
--HG--
extra : convert_revision : 702c67055040d451a946e8c6aadbb6f7af1d3999
Diffstat (limited to 'includes.h')
-rw-r--r-- | includes.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -135,6 +135,13 @@ typedef u_int16_t uint16_t; #define LOG_AUTHPRIV LOG_AUTH #endif +/* glibc 2.1.3 systems have sockaddr_storage.__ss_family rather than + * sockaddr_storage.ss_family */ +#if !defined(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY) \ + && defined(HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY) +#define ss_family __ss_family +#endif + /* so we can avoid warnings about unused params (ie in signal handlers etc) */ #ifdef UNUSED #elif defined(__GNUC__) |