]> git.droids-corp.org - dpdk.git/commitdiff
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)
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

index 6494adea04dbd43d50cd02ab2f9fa9b1a85f8d16..85fc416276f2d97a7bc136ec0e6f3ac169d9c1ee 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include <stdint.h>
+#include <stddef.h>
 
 #ifdef __cplusplus
 extern "C" {