aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2017-11-16 14:22:55 -0800
committerBruce A. Mah <bmah@es.net>2017-11-16 14:22:55 -0800
commitc0225583af5495da91cc31859cb4e58d08ab6218 (patch)
tree5022b7340a0f890ca1c8f96274c1a13d9c531611
parent19329249d11722bc0e55b1ade0ca33611fdb57a1 (diff)
downloadiperf3-c0225583af5495da91cc31859cb4e58d08ab6218.tar.gz
Fix a compiler warning on FreeBSD related to getline(3).
-rw-r--r--src/iperf_auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iperf_auth.c b/src/iperf_auth.c
index 483549c..5ba2e08 100644
--- a/src/iperf_auth.c
+++ b/src/iperf_auth.c
@@ -31,6 +31,8 @@
#include <assert.h>
#include <time.h>
#include <sys/types.h>
+/* FreeBSD needs _WITH_GETLINE to enable the getline() declaration */
+#define _WITH_GETLINE
#include <stdio.h>
#include <termios.h>