a8d6a72
From db6d15bf12a0123e4320e5fd7cb688331dea1bdc Mon Sep 17 00:00:00 2001
a8d6a72
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
a8d6a72
Date: Fri, 24 Aug 2018 09:52:58 -0300
a8d6a72
Subject: [PATCH 1/3] build: remove v4.12 secondary defines in favor of
a8d6a72
 HAVE_SCTP_STREAM_RECONFIG
a8d6a72
a8d6a72
These were backups, commented out since beginning.
a8d6a72
HAVE_SCTP_STREAM_RECONFIG is enough to identify that these are there, so
a8d6a72
lets use only one.
a8d6a72
a8d6a72
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
a8d6a72
Reviewed-by: Xin Long <lucien.xin@gmail.com>
a8d6a72
---
a8d6a72
 configure.ac                  | 8 --------
a8d6a72
 src/include/netinet/sctp.h.in | 2 --
a8d6a72
 2 files changed, 10 deletions(-)
a8d6a72
a8d6a72
diff --git a/configure.ac b/configure.ac
a8d6a72
index 2ae36ec..dad658c 100644
a8d6a72
--- a/configure.ac
a8d6a72
+++ b/configure.ac
a8d6a72
@@ -82,14 +82,6 @@ AC_CHECK_FUNCS([bzero gethostbyname gettimeofday memmove memset select socket \
a8d6a72
 LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_reset_event],
a8d6a72
 		    [HAVE_SCTP_STREAM_RESET_EVENT])
a8d6a72
 
a8d6a72
-# Support for assoc reset event, added on v4.12, c95129d127c6
a8d6a72
-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_assoc_reset_event], \
a8d6a72
-#		    [HAVE_SCTP_ASSOC_RESET_EVENT])
a8d6a72
-
a8d6a72
-# Support for stream change event, added on v4.12, b444153fb5a6
a8d6a72
-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_change_event], \
a8d6a72
-#		    [HAVE_SCTP_STREAM_CHANGE_EVENT])
a8d6a72
-
a8d6a72
 # RFC 6525 (Stream Reconf), finished on v4.12, c0d8bab6ae51
a8d6a72
 LKSCTP_CHECK_DECL([SCTP_RECONFIG_SUPPORTED], [HAVE_SCTP_STREAM_RECONFIG])
a8d6a72
 
a8d6a72
diff --git a/src/include/netinet/sctp.h.in b/src/include/netinet/sctp.h.in
a8d6a72
index c049077..2009f1c 100644
a8d6a72
--- a/src/include/netinet/sctp.h.in
a8d6a72
+++ b/src/include/netinet/sctp.h.in
a8d6a72
@@ -61,8 +61,6 @@ extern "C" {
a8d6a72
 #define HAVE_SCTP_CANSET_PRIMARY
a8d6a72
 
a8d6a72
 #undef HAVE_SCTP_STREAM_RESET_EVENT
a8d6a72
-#undef HAVE_SCTP_ASSOC_RESET_EVENT
a8d6a72
-#undef HAVE_SCTP_STREAM_CHANGE_EVENT
a8d6a72
 #undef HAVE_SCTP_STREAM_RECONFIG
a8d6a72
 #undef HAVE_SCTP_PEELOFF_FLAGS
a8d6a72
 #undef HAVE_SCTP_PDAPI_EVENT_PDAPI_STREAM
a8d6a72
-- 
a8d6a72
1.8.3.1
a8d6a72