Change in osmo-uecups[master]: daemon: Work around old libnl3 failing to include linux/netlink.h

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Apr 20 11:28:05 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-uecups/+/17890 )

Change subject: daemon: Work around old libnl3 failing to include linux/netlink.h
......................................................................

daemon: Work around old libnl3 failing to include linux/netlink.h

In file included from /usr/include/libnl3/netlink/socket.h:16:0,
                 from netdev.c:19:
/usr/include/libnl3/netlink/handlers.h:51:15: warning: ‘struct nlmsgerr’
declared inside parameter list will not be visible outside of this
definition or declaration
        struct nlmsgerr *nlerr, void *arg);

Change-Id: Ia2d1b0d5ccf427895feb80298d9b5c3aef1c6c9d
---
M daemon/netdev.c
M daemon/tun_device.c
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/daemon/netdev.c b/daemon/netdev.c
index 2022d24..e619883 100644
--- a/daemon/netdev.c
+++ b/daemon/netdev.c
@@ -16,6 +16,7 @@
 #include <linux/if_tun.h>
 #include <sys/ioctl.h>
 
+#include <linux/netlink.h>
 #include <netlink/socket.h>
 #include <netlink/route/link.h>
 #include <netlink/route/addr.h>
diff --git a/daemon/tun_device.c b/daemon/tun_device.c
index e20607d..738d492 100644
--- a/daemon/tun_device.c
+++ b/daemon/tun_device.c
@@ -22,6 +22,7 @@
 #include <linux/if_tun.h>
 #include <sys/ioctl.h>
 
+#include <linux/netlink.h>
 #include <netlink/socket.h>
 #include <netlink/route/link.h>
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-uecups/+/17890
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: Ia2d1b0d5ccf427895feb80298d9b5c3aef1c6c9d
Gerrit-Change-Number: 17890
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200420/f6832162/attachment.htm>


More information about the gerrit-log mailing list