From 48841bec7e0184855ccda58b81ff478af2fd9386 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Feb 2011 21:13:53 +0000 Subject: [PATCH] [packages] l2tpv3tun: fix libnl 2.0 fallout... SVN-Revision: 25655 --- net/l2tpv3tun/Makefile | 2 +- .../patches/100-nl_handle_alloc.patch | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 net/l2tpv3tun/patches/100-nl_handle_alloc.patch diff --git a/net/l2tpv3tun/Makefile b/net/l2tpv3tun/Makefile index 0d3e71cac0..f965569e28 100644 --- a/net/l2tpv3tun/Makefile +++ b/net/l2tpv3tun/Makefile @@ -38,7 +38,7 @@ MAKE_FLAGS += \ CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \ LD="$(TARGET_CC)" \ - LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lnl" + LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lnl -lnl-genl" define Package/l2tpv3tun/install $(INSTALL_DIR) $(1)/usr/bin diff --git a/net/l2tpv3tun/patches/100-nl_handle_alloc.patch b/net/l2tpv3tun/patches/100-nl_handle_alloc.patch new file mode 100644 index 0000000000..6ed228887b --- /dev/null +++ b/net/l2tpv3tun/patches/100-nl_handle_alloc.patch @@ -0,0 +1,25 @@ +Index: l2tpv3tun-0.2/main.c +=================================================================== +--- l2tpv3tun-0.2.orig/main.c ++++ l2tpv3tun-0.2/main.c +@@ -100,7 +100,7 @@ struct l2tp_data { + }; + + /* netlink socket */ +-static struct nl_handle *nl_sock; ++static struct nl_sock *nl_sock; + static int nl_family; + + /***************************************************************************** +@@ -788,9 +788,9 @@ static int do_show(int argc, char **argv + + int do_ipl2tp(int argc, char **argv) + { +- nl_sock = nl_handle_alloc(); ++ nl_sock = nl_socket_alloc(); + if (!nl_sock) { +- perror("nl_handle_alloc"); ++ perror("nl_socket_alloc"); + return 1; + } + -- 2.30.2