[dpdk-dev] [PATCH v3] app/test-crypto-perf: fix compilation under FreeBSD
Daniel Mrzyglod
danielx.t.mrzyglod at intel.com
Tue Feb 7 10:44:34 CET 2017
This patch fixes error: implicit declaration of function 'getline'
Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod at intel.com>
---
v3:
* remove gcc from commit subject because it's common for all compillers
v2:
* rewrite patch messege
* add fixline
---
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