[dpdk-dev,v3] app/test-crypto-perf: fix compilation under FreeBSD
Checks
Commit Message
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@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(+)
Comments
2017-02-07 10:44, Daniel Mrzyglod:
> 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@intel.com>
Applied, thanks
@@ -1,3 +1,6 @@
+#ifdef RTE_EXEC_ENV_BSDAPP
+ #define _WITH_GETLINE
+#endif
#include <stdio.h>
#include <rte_malloc.h>