From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) by dpdk.org (Postfix) with ESMTP id D5A7D568A for ; Wed, 9 Dec 2015 05:10:06 +0100 (CET) Received: from localhost by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 Dec 2015 14:10:03 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 9 Dec 2015 14:10:00 +1000 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: chaozhu@linux.vnet.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 028BA357804F for ; Wed, 9 Dec 2015 15:10:00 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tB949Xex18153622 for ; Wed, 9 Dec 2015 15:09:41 +1100 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tB949R2j032584 for ; Wed, 9 Dec 2015 15:09:27 +1100 Received: from os_controller.crl.ibm.com ([9.186.57.26]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id tB949Qpk031419 for ; Wed, 9 Dec 2015 15:09:26 +1100 From: Chao Zhu To: dev@dpdk.org Date: Wed, 9 Dec 2015 12:11:47 +0800 Message-Id: <1449634307-24075-1-git-send-email-chaozhu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15120904-0017-0000-0000-0000025CB54D Subject: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 04:10:07 -0000 This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h. The compile error exists on IBM POWER and ARM (see jerin.jacob@caviumnetworks.com's message). The errors are like: In file included from /tmp/dpdk/app/test/test_hash_scaling.c:35:0: /tmp/dpdk/build/include/rte_hash.h:70:70: error: unknown type name ‘size_t’ typedef int (*rte_hash_cmp_eq_t)(const void *key1, const void *key2, size_t key_len); ^ /tmp/dpdk/build/include/rte_hash.h:120:48: error: unknown type name ‘rte_hash_cmp_eq_t’ void rte_hash_set_cmp_func(struct rte_hash *h, rte_hash_cmp_eq_t func); Signed-off-by: Chao Zhu --- lib/librte_hash/rte_hash.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_hash/rte_hash.h b/lib/librte_hash/rte_hash.h index 6494ade..85fc416 100644 --- a/lib/librte_hash/rte_hash.h +++ b/lib/librte_hash/rte_hash.h @@ -41,6 +41,7 @@ */ #include +#include #ifdef __cplusplus extern "C" { -- 1.7.1