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 at 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 <chaozhu at linux.vnet.ibm.com> --- 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 <stdint.h> +#include <stddef.h> #ifdef __cplusplus extern "C" { -- 1.7.1