From ddf55791828f96f4b6f622520857ca5ef3381bb3 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Thu, 16 Oct 2014 11:29:41 -0700 Subject: [PATCH] Improve SCTP detection on Solaris. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 12c3faa..5af22d9 100644 --- a/configure.ac +++ b/configure.ac @@ -84,8 +84,14 @@ exit 1 AC_C_CONST # Check for SCTP support +AC_CHECK_HEADERS([sys/socket.h]) AC_CHECK_HEADERS([netinet/sctp.h], - AC_DEFINE([HAVE_SCTP], [1], [Have SCTP support.])) + AC_DEFINE([HAVE_SCTP], [1], [Have SCTP support.]), + [], + [#ifdef HAVE_SYS_SOCKET_H +#include +#endif +]) # Check for TCP_CONGESTION sockopt (believed to be Linux only) AC_CACHE_CHECK([TCP_CONGESTION socket option],