Skip to content

Commit

Permalink
lib: Fix FreeBSD build.
Browse files Browse the repository at this point in the history
Various recent commits have introduced build failures on FreeBSD. This
patch fixes them.

Signed-off-by: Joe Stringer <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
joestringer committed Jun 26, 2014
1 parent 386cb9f commit a48fd8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion lib/netdev-bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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
Expand All @@ -1820,3 +1821,4 @@ af_link_ioctl(unsigned long command, const void *arg)
: ioctl(sock, command, arg) == -1 ? errno
: 0);
}
#endif
1 change: 1 addition & 0 deletions lib/signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit a48fd8e

Please sign in to comment.