Patch below fixes build on FreeBSD; tested on 10.0-CURRENT. Signed-off-by: Edward Tomasz Napierala <tr...@freebsd.org> --- configure.ac | 1 + lib/meta-flow.h | 2 ++ lib/odp-util.c | 1 + lib/ofp-util.c | 2 ++ lib/packets.c | 1 + ofproto/in-band.h | 1 + vswitchd/system-stats.c | 4 ++++ 7 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac index 3b87e7e..7bac871 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,7 @@ AC_SYS_LARGEFILE AC_SEARCH_LIBS([pow], [m]) AC_SEARCH_LIBS([clock_gettime], [rt]) +AC_SEARCH_LIBS([timer_create], [rt]) OVS_CHECK_COVERAGE OVS_CHECK_NDEBUG diff --git a/lib/meta-flow.h b/lib/meta-flow.h index 696b8ca..1242f9f 100644 --- a/lib/meta-flow.h +++ b/lib/meta-flow.h @@ -17,6 +17,8 @@ #ifndef META_FLOW_H #define META_FLOW_H 1 +#include <sys/types.h> +#include <netinet/in.h> #include <netinet/ip6.h> #include "flow.h" #include "packets.h" diff --git a/lib/odp-util.c b/lib/odp-util.c index 33672c8..1e20f49 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -19,6 +19,7 @@ #include "odp-util.h" #include <errno.h> #include <inttypes.h> +#include <netinet/in.h> #include <netinet/icmp6.h> #include <stdlib.h> #include <string.h> diff --git a/lib/ofp-util.c b/lib/ofp-util.c index bf03a82..b1d35cb 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -18,6 +18,8 @@ #include "ofp-print.h" #include <errno.h> #include <inttypes.h> +#include <sys/types.h> +#include <netinet/in.h> #include <netinet/icmp6.h> #include <stdlib.h> #include "autopath.h" diff --git a/lib/packets.c b/lib/packets.c index 815d4e6..b704276 100644 --- a/lib/packets.c +++ b/lib/packets.c @@ -18,6 +18,7 @@ #include "packets.h" #include <assert.h> #include <arpa/inet.h> +#include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> #include "byte-order.h" diff --git a/ofproto/in-band.h b/ofproto/in-band.h index f7f2ec6..9de72ee 100644 --- a/ofproto/in-band.h +++ b/ofproto/in-band.h @@ -20,6 +20,7 @@ #include <stdbool.h> #include <stddef.h> #include <sys/socket.h> +#include <netinet/in.h> struct flow; struct in_band; diff --git a/vswitchd/system-stats.c b/vswitchd/system-stats.c index b8f8d7e..a3b4db4 100644 --- a/vswitchd/system-stats.c +++ b/vswitchd/system-stats.c @@ -95,7 +95,11 @@ get_memory_stats(struct shash *stats) if (!LINUX) { unsigned int pagesize = get_page_size(); long int phys_pages = sysconf(_SC_PHYS_PAGES); +#ifdef _SC_AVPHYS_PAGES long int avphys_pages = sysconf(_SC_AVPHYS_PAGES); +#else + long int avphys_pages = 0; +#endif int mem_total, mem_used; if (pagesize <= 0 || phys_pages <= 0 || avphys_pages <= 0) { -- 1.7.6 _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss