net/mlx5: fix build on PPC64
authorThomas Monjalon <thomas@monjalon.net>
Wed, 7 Nov 2018 16:00:28 +0000 (17:00 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit725f5dd0bfb50192a2d2341d4cc69084c2c4e03d
tree5f0e998b647a282f2b2ae48537eb488d0a9d950f
parentba46f5e60f03fdc357e5fcbc370eb2812c3120ff
net/mlx5: fix build on PPC64

The AltiVec header file breaks boolean type:

error: incompatible types when initializing type
'__vector _bool int' {aka '_vector(4) __bool int'} using type 'int'

If __APPLE_ALTIVEC__ is defined, then bool type is redefined
and conflicts with stdbool.h.

There is no good solution to fix it for the whole project without
breaking something else, so a workaround is inserted in mlx5 PMD.
This workaround is not compatible with C++ but there is no C++ in DPDK.

Suggested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Suggested-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: David Wilder <dwilder@us.ibm.com>
Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
drivers/net/mlx5/mlx5_utils.h