From 2a2ddb7bcbfc164b82224b5fd9a0dd6513d10422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Sun, 24 Jun 2012 19:36:20 +0000 Subject: Pontus Fuchs (via bug 6973): Add libnl version 1 support for wireless toolbar. svn path=/trunk/; revision=43462 --- ws80211_utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ws80211_utils.c') diff --git a/ws80211_utils.c b/ws80211_utils.c index 6c100d4b98..3c7ea73d66 100644 --- a/ws80211_utils.c +++ b/ws80211_utils.c @@ -47,6 +47,20 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include +/* libnl 1.x compatibility code */ +#ifdef HAVE_LIBNL1 +#define nl_sock nl_handle +static inline struct nl_handle *nl_socket_alloc(void) +{ + return nl_handle_alloc(); +} + +static inline void nl_socket_free(struct nl_sock *h) +{ + nl_handle_destroy(h); +} +#endif /* HAVE_LIBNL1 */ + struct nl80211_state { struct nl_sock *nl_sock; int nl80211_id; -- cgit v1.2.3