<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-netif/+/19154">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stream: Fix some SCTP code not disabled if --disable-libsctp is used<br><br>Some previous commit added some code to workaround some kernel ABI<br>unstabilities but forgot to add the code inside a conditional<br>preprocessor block.<br><br>Fixes: 157ad6d7075ad56038c984ebf8634f1bc7c6c59c<br>Change-Id: Ibee01222d8d11cf2520cdbd4d0d5bed6b72d2107<br>---<br>M src/stream.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/54/19154/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/stream.c b/src/stream.c</span><br><span>index 9e5d805..cfe8cfe 100644</span><br><span>--- a/src/stream.c</span><br><span>+++ b/src/stream.c</span><br><span>@@ -65,6 +65,7 @@</span><br><span>  *  \brief Osmocom stream socket helpers</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef HAVE_LIBSCTP</span><br><span> /*</span><br><span>  * Platforms that don't have MSG_NOSIGNAL (which disables SIGPIPE)</span><br><span>  * usually have SO_NOSIGPIPE (set via setsockopt).</span><br><span>@@ -164,6 +165,7 @@</span><br><span>           return setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, event, sctp_sockopt_event_subscribe_size);</span><br><span>  }</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#endif // HAVE_LIBSCTP</span><br><span> </span><br><span> static int sctp_sock_activate_events(int fd)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-netif/+/19154">change 19154</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmo-netif/+/19154"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-netif </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ibee01222d8d11cf2520cdbd4d0d5bed6b72d2107 </div>
<div style="display:none"> Gerrit-Change-Number: 19154 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>