Change in libosmo-netif[master]: stream: Fix some SCTP code not disabled if --disable-libsctp is used

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Jul 6 10:38:45 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/19154 )


Change subject: stream: Fix some SCTP code not disabled if --disable-libsctp is used
......................................................................

stream: Fix some SCTP code not disabled if --disable-libsctp is used

Some previous commit added some code to workaround some kernel ABI
unstabilities but forgot to add the code inside a conditional
preprocessor block.

Fixes: 157ad6d7075ad56038c984ebf8634f1bc7c6c59c
Change-Id: Ibee01222d8d11cf2520cdbd4d0d5bed6b72d2107
---
M src/stream.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/54/19154/1

diff --git a/src/stream.c b/src/stream.c
index 9e5d805..cfe8cfe 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -65,6 +65,7 @@
  *  \brief Osmocom stream socket helpers
  */
 
+#ifdef HAVE_LIBSCTP
 /*
  * Platforms that don't have MSG_NOSIGNAL (which disables SIGPIPE)
  * usually have SO_NOSIGPIPE (set via setsockopt).
@@ -164,6 +165,7 @@
 		return setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, event, sctp_sockopt_event_subscribe_size);
 	}
 }
+#endif // HAVE_LIBSCTP
 
 static int sctp_sock_activate_events(int fd)
 {

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/19154
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ibee01222d8d11cf2520cdbd4d0d5bed6b72d2107
Gerrit-Change-Number: 19154
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200706/f3033b69/attachment.htm>


More information about the gerrit-log mailing list