hash: fix build on IBM POWER and ARM
authorChao Zhu <chaozhu@linux.vnet.ibm.com>
Wed, 9 Dec 2015 04:11:47 +0000 (12:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Dec 2015 21:02:33 +0000 (22:02 +0100)
commit8b8c7a35dba385d384924719c7551b5d9138b803
tree02263e195cdd9c71bf75c1a7f952e80e47e71b16
parent1ee6a5616e4944858871dd7f7d907b917b9540fe
hash: fix build on IBM POWER and ARM

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.

The errors are like:
In file included from app/test/test_hash_scaling.c:35:0:
rte_hash.h:70:70: error: unknown type name ‘size_t’

Fixes: 95da2f8e9c61 ("hash: customize compare function")

Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_hash/rte_hash.h