Author: jorton
Date: Fri Jun 3 06:36:37 2005
New Revision: 179786
URL: http://svn.apache.org/viewcvs?rev=179786&view=rev
Log:
* build/apr_network.m4 (APR_CHECK_SCTP): Fix check for SCTP.
PR: 35021
Submitted by: Lee Begg <llnz paradise.net.nz>
Modified:
apr/apr/trunk/build/apr_network.m4
Modified: apr/apr/trunk/build/apr_network.m4
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/build/apr_network.m4?rev=179786&r1=179785&r2=179786&view=diff
==============================================================================
--- apr/apr/trunk/build/apr_network.m4 (original)
+++ apr/apr/trunk/build/apr_network.m4 Fri Jun 3 06:36:37 2005
@@ -638,7 +638,8 @@
dnl
dnl check for presence of SCTP protocol support
dnl
-AC_DEFUN(APR_CHECK_SCTP,[
+AC_DEFUN([APR_CHECK_SCTP],
+[
AC_CACHE_CHECK([whether SCTP is supported], [apr_cv_sctp], [
AC_TRY_RUN([
#ifdef HAVE_SYS_TYPES_H
@@ -649,6 +650,12 @@
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_SCTP_H
+#include <netinet/sctp.h>
+#endif
+#ifdef HAVE_NETINET_SCTP_UIO_H
+#include <netinet/sctp_uio.h>
#endif
#include <stdlib.h>
int main(void) {
|