From 261d760a8b9903b6c3e30eda619c605e32d2826d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 20 Feb 2012 10:55:01 +0100 Subject: [PATCH] netlink: fix build on libnl1/2 --- src/nm-netlink-compat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/nm-netlink-compat.h b/src/nm-netlink-compat.h index 5446bbc427..6178eb665c 100644 --- a/src/nm-netlink-compat.h +++ b/src/nm-netlink-compat.h @@ -16,7 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Copyright (C) 2011 Caixa Magica Software. - * Copyright (C) 2011 Red Hat, Inc. + * Copyright (C) 2011 - 2012 Red Hat, Inc. */ #ifndef NM_NETLINK_COMPAT_H @@ -251,6 +251,13 @@ rtnl_link_vlan_set_id (struct rtnl_link *l, int id) return -NLE_OPNOTSUPP; } +static inline int +rtnl_link_vlan_get_id (struct rtnl_link *l) +{ + /* VLAN only in libnl3 */ + return -NLE_OPNOTSUPP; +} + static inline int rtnl_link_vlan_set_flags (struct rtnl_link *l, unsigned int flags) {