76c5b6
From 596efd6631b83069d41782fb0ee2d6cf76a50dfa Mon Sep 17 00:00:00 2001
76c5b6
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
76c5b6
Date: Fri, 24 Aug 2018 09:52:59 -0300
76c5b6
Subject: [PATCH 2/3] build: fix probing for HAVE_SCTP_SENDV
76c5b6
76c5b6
Somehow it was using a type that is non-existent. The right one is
76c5b6
sctp_prinfo, introduced on ed63afb8a318 ("sctp: add support for PR-SCTP
76c5b6
Information for sendmsg"), present on v4.17.
76c5b6
76c5b6
Fixes: 1b798f1ca3b5 ("build: add define HAVE_SCTP_AUTH_NO_AUTH")
76c5b6
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
76c5b6
Reviewed-by: Xin Long <lucien.xin@gmail.com>
76c5b6
---
76c5b6
 configure.ac | 5 ++---
76c5b6
 1 file changed, 2 insertions(+), 3 deletions(-)
76c5b6
76c5b6
diff --git a/configure.ac b/configure.ac
76c5b6
index dad658c..f55775a 100644
76c5b6
--- a/configure.ac
76c5b6
+++ b/configure.ac
76c5b6
@@ -94,9 +94,8 @@ LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_stream],
76c5b6
 LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_seq],
76c5b6
 		    [HAVE_SCTP_PDAPI_EVENT_PDAPI_SEQ])
76c5b6
 
76c5b6
-# PR-SCTP field used to probe for sendv/recvv support, added on v4.17
76c5b6
-LKSCTP_CHECK_MEMBER([struct sendv_prinfo.sctp_prinfo],
76c5b6
-		    [HAVE_SCTP_SENDV])
76c5b6
+# PR-SCTP struct used to probe for sendv/recvv support, added on v4.17
76c5b6
+LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV])
76c5b6
 
76c5b6
 # This event indicates that the peer does not support SCTP authentication,
76c5b6
 # added on v4.16, 30f6ebf65bc4
76c5b6
-- 
76c5b6
1.8.3.1
76c5b6