From: Felix Fietkau Date: Sun, 9 Oct 2011 17:29:04 +0000 (+0200) Subject: system-linux: remove an unnecessary libnl-tiny hack X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=372502e026e7c3788142ecf581efcc4645a79576;p=oweals%2Fnetifd.git system-linux: remove an unnecessary libnl-tiny hack --- diff --git a/system-linux.c b/system-linux.c index d7030fb..f2f9660 100644 --- a/system-linux.c +++ b/system-linux.c @@ -10,6 +10,7 @@ #include #include +#include #include #include "netifd.h" @@ -58,11 +59,7 @@ int system_init(void) nlmsg_free(m); } -#ifdef NLA_PUT_DATA rtnl_event.fd = nl_socket_get_fd(sock_rtnl_event); -#else - rtnl_event.fd = sock_rtnl_event->s_fd; // libnl-tiny hack... -#endif uloop_fd_add(&rtnl_event, ULOOP_READ | ULOOP_EDGE_TRIGGER); }