summaryrefslogtreecommitdiffstats
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-26 19:49:15 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-31 23:03:30 +0200
commitddfeb48652f8318acc8b18c2c377515de2bf1b31 (patch)
treee4825eefb3fee2b1c5f0d7b5c6817bac77a1c313 /zebra/rt_socket.c
parentbuild: convert zebra/ to non-recursive build (diff)
downloadfrr-ddfeb48652f8318acc8b18c2c377515de2bf1b31.tar.xz
frr-ddfeb48652f8318acc8b18c2c377515de2bf1b31.zip
build: zebra: remove *_method Makefile hacks
replace with preprocessor checks in source files. Much simpler... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index 827d39870..0eae3c4f2 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -20,6 +20,9 @@
*/
#include <zebra.h>
+
+#ifndef HAVE_NETLINK
+
#ifdef __OpenBSD__
#include <netmpls/mpls.h>
#endif
@@ -443,3 +446,5 @@ int kernel_del_neigh(struct interface *ifp, struct ipaddr *ip)
{
return 0;
}
+
+#endif /* !HAVE_NETLINK */