Patch below fixes build on FreeBSD; tested on 10.0-CURRENT.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AC_SEARCH_LIBS([pow], [m])
AC_SEARCH_LIBS([clock_gettime], [rt])
+AC_SEARCH_LIBS([timer_create], [rt])
OVS_CHECK_COVERAGE
OVS_CHECK_NDEBUG
#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"
#include "odp-util.h"
#include <errno.h>
#include <inttypes.h>
+#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <stdlib.h>
#include <string.h>
#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"
#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"
#include <stdbool.h>
#include <stddef.h>
#include <sys/socket.h>
+#include <netinet/in.h>
struct flow;
struct in_band;
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) {