summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-09 19:29:04 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-09 19:29:04 +0200
commit372502e026e7c3788142ecf581efcc4645a79576 (patch)
tree32d8303edfee1cc5a10996125c078615f3794efe /system-linux.c
parent07eab1f9d3b7eb6ed25b01b3b552d1e77aba1dc5 (diff)
system-linux: remove an unnecessary libnl-tiny hack
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c5
1 files changed, 1 insertions, 4 deletions
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 <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);
}