From: Joe Stringer Date: Wed, 25 Jun 2014 07:41:41 +0000 (+0000) Subject: lib: Fix FreeBSD build. X-Git-Tag: v2.3~49 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=68747ec41a5b5da38e58660471f441bffebc4193 lib: Fix FreeBSD build. Various recent commits have introduced build failures on FreeBSD. This patch fixes them. Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- diff --git a/lib/bfd.c b/lib/bfd.c index d83d198a1..4cbe99969 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "byte-order.h" #include "connectivity.h" diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 3ece3cb4c..85f3b2185 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -996,7 +996,7 @@ netdev_bsd_get_stats(const struct netdev *netdev_, struct netdev_stats *stats) netdev_get_name(netdev_), ovs_strerror(errno)); return errno; } else if (!strcmp(ifmd.ifmd_name, netdev_get_name(netdev_))) { - convert_stats(netdev, stats, &ifdr.ifdr_data); + convert_stats(netdev_, stats, &ifmd.ifmd_data); break; } } @@ -1786,6 +1786,7 @@ ifr_set_flags(struct ifreq *ifr, int flags) #endif } +#if defined(__NetBSD__) /* Calls ioctl() on an AF_LINK sock, passing the specified 'command' and * 'arg'. Returns 0 if successful, otherwise a positive errno value. */ int @@ -1807,3 +1808,4 @@ af_link_ioctl(unsigned long command, const void *arg) : ioctl(sock, command, arg) == -1 ? errno : 0); } +#endif diff --git a/lib/signals.h b/lib/signals.h index 3ef1b5bd8..7017ae815 100644 --- a/lib/signals.h +++ b/lib/signals.h @@ -18,6 +18,7 @@ #define SIGNALS_H 1 #include +#include #include "type-props.h" enum { SIGNAL_NAME_BUFSIZE = 7 + INT_STRLEN(int) + 1 };