system-linux: remove an unnecessary libnl-tiny hack
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 17:29:04 +0000 (19:29 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 17:29:04 +0000 (19:29 +0200)
system-linux.c

index d7030fb7bac8f807d60b167d4a128704afffd4fe..f2f96601658789ba077961d863015d7aa91fddfd 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <netlink/msg.h>
 #include <netlink/attr.h>
+#include <netlink/socket.h>
 #include <libubox/uloop.h>
 
 #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);
        }