[dpdk-dev] [PATCH] net/mlx5: fix cross compilation on aarch64
Ori Kam
orika at mellanox.com
Mon Apr 8 14:43:10 CEST 2019
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 at mellanox.com>
---
drivers/net/mlx5/mlx5_glue.c | 1 +
1 file changed, 1 insertion(+)
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
--
1.8.3.1
More information about the dev
mailing list