[XS] Change in libosmocore[master]: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered()
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email ) Change subject: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() ...................................................................... cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() Only osmo_cbsp_recv_buffered() uses recv() and thus requires <sys/socket.h>. However, the guard is extended to the end of the file, also covering osmo_cbsp_segmentation_cb() and osmo_cbsp_cause_names[], which have no socket dependencies. Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c --- M src/gsm/cbsp.c 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/65/44165/1 diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index b1d0d2f..18b8226 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -1588,6 +1588,7 @@ msgb_free(msg); return rc; } +#endif /* HAVE_SYS_SOCKET_H */ /*! call-back function to segment the data at message boundaries. * Returns the size of the next message. If it returns -EAGAIN or a value larger than msgb_length() (message @@ -1629,5 +1630,3 @@ { OSMO_CBSP_CAUSE_LAI_OR_LAC_NOT_VALID, "LAI-or-LAC-not-valid"}, { 0, NULL } }; - -#endif /* HAVE_SYS_SOCKET_H */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c Gerrit-Change-Number: 44165 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
participants (1)
-
fixeria