From 01dbd02341d4afa753830a1e642a59c8f7a0bbee Mon Sep 17 00:00:00 2001 From: avkarenow Date: Mon, 11 Feb 2019 23:59:26 +0100 Subject: Fix a warning on FreeBSD This should fix the following: ```C snuffleupagus/src/sp_config.c:193:10: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration] while (getline(&lineptr, &n, fd) > 0) { ^ 1 warning generated. ```--- src/sp_config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sp_config.c') diff --git a/src/sp_config.c b/src/sp_config.c index dbf3881..debf749 100644 --- a/src/sp_config.c +++ b/src/sp_config.c @@ -1,4 +1,7 @@ #include +#if defined(__FreeBSD__) +#define _WITH_GETLINE +#endif #include #include -- cgit v1.3