[dpdk-dev] [PATCH] app/test-crypto-perf: fix gcc compilation under FreeBSD
Daniel Mrzyglod
danielx.t.mrzyglod at intel.com
Wed Feb 1 14:31:17 CET 2017
this fix error: implicit declaration of function 'getline'
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod at intel.com>
---
app/test-crypto-perf/cperf_test_vector_parsing.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/test-crypto-perf/cperf_test_vector_parsing.c b/app/test-crypto-perf/cperf_test_vector_parsing.c
index e0bcb20..c53ba67 100644
--- a/app/test-crypto-perf/cperf_test_vector_parsing.c
+++ b/app/test-crypto-perf/cperf_test_vector_parsing.c
@@ -1,3 +1,6 @@
+#ifdef RTE_EXEC_ENV_BSDAPP
+ #define _WITH_GETLINE
+#endif
#include <stdio.h>
#include <rte_malloc.h>
--
2.7.4
More information about the dev
mailing list