From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by dpdk.org (Postfix) with ESMTP id 62A352C3F for ; Fri, 1 Dec 2017 12:22:41 +0100 (CET) Received: by mail-qt0-f175.google.com with SMTP id a16so12554109qtj.3 for ; Fri, 01 Dec 2017 03:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=xLYQHOjDoZjhBr0lcMWm0RYMH8vPjTrnLcvkECb/B8M=; b=hKbgk/sJ6+ts/FiipAJfSO0nxxaQ/c0avele68PSdClRbRDOKCk0j6AQvnENq4N49K n20xELmry0bkd382Z1U/0zxd5Vw4dLWEUY6o1BaS9VYZw4iVXAbA7F+oE+Y010l72Bz7 gwcXIcSBCo7L/8vdoVawpOaYMNwmc+GDNoSj2Xj45AhXnjErVPo0AkCJiMXXLeLpG6fC cd98y4sAQnbLirpZULAEy46YqMJUTeC5YVymwTc8MJaMsAv/Ol+6kEyNAaSITomD9ivE 7Jic2r8qL3ljpY7l3sc77MryDE7knuShntOk9R9Mij5GkgVZKn5ypauMyAhKm519I7uR VlEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=xLYQHOjDoZjhBr0lcMWm0RYMH8vPjTrnLcvkECb/B8M=; b=SWUp3oR87M3hnTVE/litmQfe10gf5nkLExAGxS5b//KyFnrSC9GTqSrsp+CduKVQRq l0p4vX3Mbet56juUOaCV2oirAwwNJeg5JEmUPsJhJAjaUM5CvzXcpId0R2dbSHzR0lJl xHKB7nuP9LVngH8QFLWYZh/ZgmkTs6xdRER5b2V/y4ySjf/CwIm2pSTeqM4OvBa+l2GI 4lfnPxTlKpky6ByUYAZ9duQtbl/LX/JY+wAMS0bFWhoM0vIKXNZ+AxEyQfIy3aps+xLF slvwwYQTe9bQ++YdYLP9liU6DQHP86axXQw0WXmecUNape7nj4/CN9KY348CsnYkgJpG OLGw== X-Gm-Message-State: AKGB3mKdA6aX3SVtIe6FqwsWzKjnE2Lxil7zA6bHEWLxqmi07bk3Gjuo ifJ0LTH7oSq8Hgg8XLLssi4wgsgx0vJY5M1TAF89eVbu X-Google-Smtp-Source: AGs4zMbl8U4UzRVMJGhV1mIk1zH88E2rezwBe2owFdXQx7r2Y/vBN/npCWSaKKL0dWblM3qMqVlf+aPp/46IO2hIWxk= X-Received: by 10.200.51.143 with SMTP id c15mr8226144qtb.46.1512127360444; Fri, 01 Dec 2017 03:22:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.42.136 with HTTP; Fri, 1 Dec 2017 03:22:39 -0800 (PST) From: kefu chai Date: Fri, 1 Dec 2017 19:22:39 +0800 Message-ID: To: dev@dpdk.org Cc: Bruce Richardson Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] [PATCH] contigmem: include to fix FreeBSD build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 11:22:41 -0000 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 --- 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 #include #include +#include #include -- 2.15.0