diff options
author | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:46:33 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:46:33 +0100 |
commit | 0f9df6d1bdf801ead054ed9f71ca5486a2f94450 (patch) | |
tree | c2077e316716f1c2596627513f9be43e5671be52 /sysdep/linux | |
parent | 985c060342867b5f386ef2921d1dce2e0f2406e5 (diff) | |
parent | a80cd4707464cedb526eb72e7704b097af20beb7 (diff) |
Merge commit 'a80cd4707464cedb526eb72e7704b097af20beb7' into thread-next
Diffstat (limited to 'sysdep/linux')
-rw-r--r-- | sysdep/linux/netlink.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 8168d0dc..288261f5 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -6,7 +6,6 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#include <alloca.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> @@ -29,10 +28,16 @@ #include "lib/macro.h" #include "conf/conf.h" +#ifdef CONFIG_LINUX_NETLINK #include <asm/types.h> #include <linux/if.h> #include <linux/netlink.h> #include <linux/rtnetlink.h> +#endif +#ifdef CONFIG_FREEBSD_NETLINK +#include <netlink/netlink.h> +#include <netlink/netlink_route.h> +#endif #ifdef HAVE_MPLS_KERNEL #include <linux/lwtunnel.h> |