From 1f30967e7a2c74ed7252b6c9d04c568877384ba8 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 11 Jul 2014 00:03:39 +0200 Subject: make libnl 1.0 compat macros available when LIBNL1_COMPAT is set --- include/netlink/genl/genl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/netlink/genl/genl.h b/include/netlink/genl/genl.h index 3f3340c..a3d2b6d 100644 --- a/include/netlink/genl/genl.h +++ b/include/netlink/genl/genl.h @@ -40,6 +40,13 @@ extern int genlmsg_attrlen(const struct genlmsghdr *, int); extern char * genl_op2name(int, int, char *, size_t); +#ifdef LIBNL1_COMPAT +/* compatibility stuff for netlink 1.0 */ +#define nl_handle nl_sock +#define nl_handle_alloc_cb nl_socket_alloc_cb +#define nl_handle_destroy nl_socket_free +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1