[dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER

Jerin Jacob jerin.jacob at caviumnetworks.com
Tue Dec 8 10:10:33 CET 2015


On Tue, Dec 08, 2015 at 04:28:52PM +0800, Chao Zhu wrote:
> This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h.
> 
> 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..5046e9b 100644
> --- a/lib/librte_hash/rte_hash.h
> +++ b/lib/librte_hash/rte_hash.h
> @@ -41,6 +41,7 @@
>   */
>  
>  #include <stdint.h>
> +#include <stdio.h>

Thanks for the patch.
The Same issue comes with arm64 GCC 5.2 compiler too.
Shouldn't be stddef.h instead of stdio.h?

>  
>  #ifdef __cplusplus
>  extern "C" {
> -- 
> 1.7.1
> 


More information about the dev mailing list