fixeria has uploaded this change for review.
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 change 44165. To unsubscribe, or for help writing mail filters, visit settings.