Mercurial > hg > freeDiameter
changeset 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 | ae76ea63ee12 |
children | 288254d567b7 |
files | libfdcore/sctp.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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: