net/mlx4: fix build on ppc64
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Tue, 13 Aug 2019 11:28:43 +0000 (13:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Sep 2019 09:53:34 +0000 (11:53 +0200)
commitceadf1a405d9951c6d15ed27e010f5b1a80dbdf5
tree5cad7da681ee1e5b3876392710ccb7e1e01a52d4
parent5fdd61136babc3ec4a371ed09372c551da3e79b3
net/mlx4: 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.

Related to: 725f5dd0bfb5 ("net/mlx5: fix build on PPC64")
Cc: stable@dpdk.org
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Tested-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx4/mlx4_utils.h