blob: 89c89835da689979051f2f91184fb54f739817d7 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 596efd6631b83069d41782fb0ee2d6cf76a50dfa Mon Sep 17 00:00:00 2001
2From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
3Date: Fri, 24 Aug 2018 09:52:59 -0300
4Subject: [PATCH] build: fix probing for HAVE_SCTP_SENDV
5
6Somehow it was using a type that is non-existent. The right one is
7sctp_prinfo, introduced on ed63afb8a318 ("sctp: add support for PR-SCTP
8Information for sendmsg"), present on v4.17.
9
10Fixes: 1b798f1ca3b5 ("build: add define HAVE_SCTP_AUTH_NO_AUTH")
11Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
12Reviewed-by: Xin Long <lucien.xin@gmail.com>
13---
14 configure.ac | 5 ++---
15 1 file changed, 2 insertions(+), 3 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index dad658c..f55775a 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -94,9 +94,8 @@ LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_stream],
22 LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_seq],
23 [HAVE_SCTP_PDAPI_EVENT_PDAPI_SEQ])
24
25-# PR-SCTP field used to probe for sendv/recvv support, added on v4.17
26-LKSCTP_CHECK_MEMBER([struct sendv_prinfo.sctp_prinfo],
27- [HAVE_SCTP_SENDV])
28+# PR-SCTP struct used to probe for sendv/recvv support, added on v4.17
29+LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV])
30
31 # This event indicates that the peer does not support SCTP authentication,
32 # added on v4.16, 30f6ebf65bc4
33--
342.7.4
35