[dpdk-dev] app/test-crypto-perf: fix gcc compilation under FreeBSD
Checks
Commit Message
this fix error: implicit declaration of function 'getline'
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
---
app/test-crypto-perf/cperf_test_vector_parsing.c | 3 +++
1 file changed, 3 insertions(+)
Comments
Hi Daniel,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Daniel Mrzyglod
> Sent: Wednesday, February 01, 2017 1:31 PM
> To: Mrozowicz, SlawomirX
> Cc: dev@dpdk.org; Mrzyglod, DanielX T
> Subject: [dpdk-dev] [PATCH] app/test-crypto-perf: fix gcc compilation under
> FreeBSD
>
> this fix error: implicit declaration of function 'getline'
Could you add a Fixline for this?
Also, make sure your commit message starts with capital latter "This patch fixes error.."
Thanks,
Pablo
@@ -1,3 +1,6 @@
+#ifdef RTE_EXEC_ENV_BSDAPP
+ #define _WITH_GETLINE
+#endif
#include <stdio.h>
#include <rte_malloc.h>