arehbein has uploaded this change for review.

View Change

gsmtap_util: Fix for embedded

Get rid of union member using 'struct osmo sockaddr'
(we don't have libosmocore sockets for embedded)

Related: OS#6213
Change-Id: Ifaaeae622f01cbe6473d6e28046c01095139f532
---
M include/osmocom/core/osmo_io.h
1 file changed, 15 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/49/34749/1
diff --git a/include/osmocom/core/osmo_io.h b/include/osmocom/core/osmo_io.h
index b3d248f..d07cd06 100644
--- a/include/osmocom/core/osmo_io.h
+++ b/include/osmocom/core/osmo_io.h
@@ -54,7 +54,7 @@
* (e.g. setting lxh or msgb->cb). */
int (*segmentation_cb)(struct msgb *msg);
};
-
+#if (!EMBEDDED)
/* mode OSMO_IO_FD_MODE_RECVFROM_SENDTO: */
struct {
/*! call-back function emulating recvfrom */
@@ -67,6 +67,7 @@
const struct osmo_sockaddr *daddr);
};
};
+#endif /* (!EMBEDDED) */
};

void osmo_iofd_init(void);

To view, visit change 34749. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ifaaeae622f01cbe6473d6e28046c01095139f532
Gerrit-Change-Number: 34749
Gerrit-PatchSet: 1
Gerrit-Owner: arehbein <arehbein@sysmocom.de>
Gerrit-MessageType: newchange