summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2014-07-11 00:03:39 +0200
committerrofl0r <retnyg@gmx.net>2014-07-11 00:03:39 +0200
commit1f30967e7a2c74ed7252b6c9d04c568877384ba8 (patch)
tree17b3f011ac196a9862b2364a771a0502a52a83bd /include
parent0461ceca9873d16191c3645c0ae7109beb229e28 (diff)
downloadlibnl-tiny-1f30967e7a2c74ed7252b6c9d04c568877384ba8.tar.gz
make libnl 1.0 compat macros available when LIBNL1_COMPAT is set
Diffstat (limited to 'include')
-rw-r--r--include/netlink/genl/genl.h7
1 files changed, 7 insertions, 0 deletions
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