Blame SOURCES/lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch

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