From: kefu chai <tchaikov@gmail.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
Date: Fri, 1 Dec 2017 19:22:39 +0800 [thread overview]
Message-ID: <CAJE9aOO9J954eT3zNsUagsWu7oiPxvwnh2zRuu7LKO2DdcuZnw@mail.gmail.com> (raw)
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);
^
1 error generated.
*** Error code 1
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
---
lib/librte_eal/bsdapp/contigmem/contigmem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/librte_eal/bsdapp/contigmem/contigmem.c
b/lib/librte_eal/bsdapp/contigmem/contigmem.c
index e8fb9087d..9676d8b35 100644
--- a/lib/librte_eal/bsdapp/contigmem/contigmem.c
+++ b/lib/librte_eal/bsdapp/contigmem/contigmem.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include <sys/rwlock.h>
#include <sys/systm.h>
#include <sys/sysctl.h>
+#include <sys/vmmeter.h>
#include <machine/bus.h>
--
2.15.0
next reply other threads:[~2017-12-01 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 11:22 kefu chai [this message]
2017-12-01 13:20 ` Bruce Richardson
2018-01-09 15:38 ` Thomas Monjalon
-- strict thread matches above, loose matches on Subject: below --
2017-11-30 6:00 kefu chai
2017-11-30 9:56 ` Bruce Richardson
2017-12-01 2:00 ` kefu chai
2017-12-01 10:20 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJE9aOO9J954eT3zNsUagsWu7oiPxvwnh2zRuu7LKO2DdcuZnw@mail.gmail.com \
--to=tchaikov@gmail.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).