diff includes.h @ 262:a3a68c25035e

* workaround for systems such as glibc 2.1 that have sockaddr_storage.__ss_family rather than sockaddr_storage.ss_family
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Dec 2005 17:49:59 +0000
parents 8b62b0ea8f3b
children 740e782679be e17f0333c21e 1bfa65fed772
line wrap: on
line diff
--- a/includes.h	Tue Dec 06 17:32:53 2005 +0000
+++ b/includes.h	Tue Dec 06 17:49:59 2005 +0000
@@ -135,6 +135,13 @@
 #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__)