# HG changeset patch # User Luke Mewburn # Date 1585634993 -39600 # Node ID acbfec3df2818aabf8bb66572e08bc4ba725230a # Parent ae76ea63ee12a2082cd2f64811a8bedc7cf351c1 Fix SCTP build on Fedora 31 Fedora 31 has most of the "new" SCTP API per RFC 6458, with kernel 5.5.6 and lksctp-tools 1.0.18, excluding SCTP_NOTIFICATIONS_STOPPED_EVENT. diff -r ae76ea63ee12 -r acbfec3df281 libfdcore/sctp.c --- a/libfdcore/sctp.c Mon Mar 30 16:46:31 2020 +1100 +++ b/libfdcore/sctp.c Tue Mar 31 17:09:53 2020 +1100 @@ -1271,10 +1271,12 @@ break; #ifndef OLD_SCTP_SOCKET_API +#ifdef SCTP_NOTIFICATIONS_STOPPED_EVENT case SCTP_NOTIFICATIONS_STOPPED_EVENT: TRACE_DEBUG(INFO, "Received SCTP_NOTIFICATIONS_STOPPED_EVENT notification, marking the association in error state"); *event = FDEVP_CNX_ERROR; break; +#endif /* SCTP_NOTIFICATIONS_STOPPED_EVENT */ #endif /* OLD_SCTP_SOCKET_API */ default: