aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-12-04 15:18:39 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commitb73261b6f5f0dbb2c0fee2c52278dfbd0ee4aba3 (patch)
tree76254482d4374ed22b5785a9a70bd10045c390fd /common.h
parent11a1e58f11dfef67d01aebf89232f93f12207bc0 (diff)
introduced a HAVE_SA_LEN macro to support OSes (other than linux) without length field in sockaddr_*
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index c10b65d..ca68f54 100644
--- a/common.h
+++ b/common.h
@@ -103,7 +103,7 @@
static __inline u_int8_t
sysdep_sa_len (const struct sockaddr *sa)
{
-#ifdef __linux__
+#ifndef HAVE_SA_LEN
switch (sa->sa_family)
{
case AF_INET: