contigmem: fix build on FreeBSD 12
authorKefu Chai <tchaikov@gmail.com>
Fri, 1 Dec 2017 11:22:39 +0000 (19:22 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 9 Jan 2018 15:52:16 +0000 (16:52 +0100)
include <sys/vmmeter.h> to fix build
otherwise the build fails with FreeBSD 12, like

In file included from contigmem.c:57:
/usr/srcs/head/src/sys/vm/vm_phys.h:122:10: error:
use of undeclared identifier 'vm_cnt'
        return (vm_cnt.v_free_count += adj);
                ^

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/contigmem/contigmem.c

index 4b389fb..1715b5d 100644 (file)
@@ -16,6 +16,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/rwlock.h>
 #include <sys/systm.h>
 #include <sys/sysctl.h>
+#include <sys/vmmeter.h>
 
 #include <machine/bus.h>