app/crypto-perf: fix FreeBSD build
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Tue, 7 Feb 2017 09:44:34 +0000 (10:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Feb 2017 15:42:12 +0000 (16:42 +0100)
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>
app/test-crypto-perf/cperf_test_vector_parsing.c

index e0bcb20..c53ba67 100644 (file)
@@ -1,3 +1,6 @@
+#ifdef RTE_EXEC_ENV_BSDAPP
+       #define _WITH_GETLINE
+#endif
 #include <stdio.h>
 
 #include <rte_malloc.h>