From 7956d661eeefe2140355d94f6fd063d68f73dcad Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 4 Oct 2011 13:20:11 -0500 Subject: [PATCH] core: fix builds with libnl2 --- src/nm-netlink-compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nm-netlink-compat.h b/src/nm-netlink-compat.h index f6225c708..af21fb9ad 100644 --- a/src/nm-netlink-compat.h +++ b/src/nm-netlink-compat.h @@ -62,6 +62,15 @@ __rtnl_link_alloc_cache (struct nl_sock *h, struct nl_cache **cache) #define rtnl_link_alloc_cache __rtnl_link_alloc_cache #endif + +/* libnl-2.0 compat functions */ +#ifdef HAVE_LIBNL2 + +/* functions with similar prototypes */ +#define nlmsg_datalen nlmsg_len +#endif + + /* libnl-1.0 compat functions */ #ifdef HAVE_LIBNL1