summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2019-04-08 12:43:10 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-04-12 11:02:02 +0200
commitbbda883ca068d430f289190e49ecbdf6ab2a0761 (patch)
treebec7d3d87d590b43ad28f2661301c33544d4b3bc
parent1eab29b9b8bd7ec9556f77b40cd1ace41e961b17 (diff)
downloaddpdk-bbda883ca068d430f289190e49ecbdf6ab2a0761.zip
dpdk-bbda883ca068d430f289190e49ecbdf6ab2a0761.tar.gz
dpdk-bbda883ca068d430f289190e49ecbdf6ab2a0761.tar.xz
net/mlx5: fix build on Arm
In case of cross compilation on aarch64 we must add include for stdlib in order to use the free function. Fixes: cbb66daa3c85 ("net/mlx5: prepare Direct Verbs for Direct Rule") Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c
index f5a6c2e..a508faa 100644
--- a/drivers/net/mlx5/mlx5_glue.c
+++ b/drivers/net/mlx5/mlx5_glue.c
@@ -7,6 +7,7 @@
#include <stdalign.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdlib.h>
/*
* Not needed by this file; included to work around the lack of off_t