path: root/src/stream.c
diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2020-07-06 12:36:11 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-07-06 12:36:18 +0200
commitb1e01cbbbd38edf81ac7c36145b76a8c94fa9656 (patch)
treeec5ad6cd9d52c6959983135cfa35d7fdd81f0c24 /src/stream.c
parent77a856878fd87d6219434a6a505ddd43d5dca1ac (diff)
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
Diffstat (limited to 'src/stream.c')
1 files changed, 2 insertions, 0 deletions
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
* Platforms that don't have MSG_NOSIGNAL (which disables SIGPIPE)
* usually have SO_NOSIGPIPE (set via setsockopt).
@@ -164,6 +165,7 @@ static int sctp_setsockopt_events_linux_workaround(int fd, const struct sctp_eve
return setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, event, sctp_sockopt_event_subscribe_size);
+#endif // HAVE_LIBSCTP
static int sctp_sock_activate_events(int fd)