comparison 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
comparison
equal deleted inserted replaced
261:82393badfa24 262:a3a68c25035e
133 133
134 #ifndef LOG_AUTHPRIV 134 #ifndef LOG_AUTHPRIV
135 #define LOG_AUTHPRIV LOG_AUTH 135 #define LOG_AUTHPRIV LOG_AUTH
136 #endif 136 #endif
137 137
138 /* glibc 2.1.3 systems have sockaddr_storage.__ss_family rather than
139 * sockaddr_storage.ss_family */
140 #if !defined(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY) \
141 && defined(HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY)
142 #define ss_family __ss_family
143 #endif
144
138 /* so we can avoid warnings about unused params (ie in signal handlers etc) */ 145 /* so we can avoid warnings about unused params (ie in signal handlers etc) */
139 #ifdef UNUSED 146 #ifdef UNUSED
140 #elif defined(__GNUC__) 147 #elif defined(__GNUC__)
141 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) 148 # define UNUSED(x) UNUSED_ ## x __attribute__((unused))
142 #elif defined(__LCLINT__) 149 #elif defined(__LCLINT__)