[dpdk-dev] app/test-crypto-perf: fix gcc compilation under FreeBSD

Message ID 1485955877-25839-1-git-send-email-danielx.t.mrzyglod@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Pablo de Lara Guarch
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel compilation success Compilation OK

Commit Message

Daniel Mrzyglod Feb. 1, 2017, 1:31 p.m. UTC
  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

De Lara Guarch, Pablo Feb. 2, 2017, 10:52 a.m. UTC | #1
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
  

Patch

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>