Various recent commits have introduced build failures on FreeBSD. This patch fixes them.
Signed-off-by: Joe Stringer <[email protected]> --- lib/bfd.c | 1 + lib/netdev-bsd.c | 4 +++- lib/signals.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bfd.c b/lib/bfd.c index d83d198..4cbe999 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -19,6 +19,7 @@ #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> +#include <sys/socket.h> #include "byte-order.h" #include "connectivity.h" diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 65ae9f9..16efc3d 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -1009,7 +1009,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; } } @@ -1799,6 +1799,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 @@ -1820,3 +1821,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 3ef1b5b..7017ae8 100644 --- a/lib/signals.h +++ b/lib/signals.h @@ -18,6 +18,7 @@ #define SIGNALS_H 1 #include <signal.h> +#include <stddef.h> #include "type-props.h" enum { SIGNAL_NAME_BUFSIZE = 7 + INT_STRLEN(int) + 1 }; -- 1.7.10.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
