Mercurial > hg > freeDiameter
diff libfdcore/sctp.c @ 1495:acbfec3df281
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.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Tue, 31 Mar 2020 17:09:53 +1100 |
parents | 732e0f76dbfb |
children | 407e0a889c7e 9222d31123b1 |
line wrap: on
line diff
--- 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: