Fix compilation issues introduced with the last commit.
diff --git a/usrsctplib/netinet/sctp_usrreq.c b/usrsctplib/netinet/sctp_usrreq.c
index 8053282..e8cf780 100755
--- a/usrsctplib/netinet/sctp_usrreq.c
+++ b/usrsctplib/netinet/sctp_usrreq.c
@@ -983,9 +983,11 @@
 	} else if (addr->sa_family != AF_INET) {
 		SCTP_LTRACE_ERR_RET_PKT(m, inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EAFNOSUPPORT);
 		error = EAFNOSUPPORT;
+#if defined(HAVE_SA_LEN)
 	} else if (addr->sa_len != sizeof(struct sockaddr_in)) {
 		SCTP_LTRACE_ERR_RET_PKT(m, inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL);
 		error = EINVAL;
+#endif
 	}
 	if (error != 0) {
 		sctp_m_freem(m);
diff --git a/usrsctplib/netinet6/sctp6_usrreq.c b/usrsctplib/netinet6/sctp6_usrreq.c
index 31b97e6..352028d 100644
--- a/usrsctplib/netinet6/sctp6_usrreq.c
+++ b/usrsctplib/netinet6/sctp6_usrreq.c
@@ -1012,18 +1012,22 @@
 	switch (addr->sa_family) {
 #ifdef INET
 	case AF_INET:
+#if defined(HAVE_SA_LEN)
 		if (addr->sa_len != sizeof(struct sockaddr_in)) {
 			SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP6_USRREQ, EINVAL);
 			return (EINVAL);
 		}
+#endif
 		break;
 #endif
 #ifdef INET6
 	case AF_INET6:
+#if defined(HAVE_SA_LEN)
 		if (addr->sa_len != sizeof(struct sockaddr_in6)) {
 			SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP6_USRREQ, EINVAL);
 			return (EINVAL);
 		}
+#endif
 		break;
 #endif
 	default: