diff options
| author | avkarenow | 2019-02-11 23:59:26 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-11 22:59:26 +0000 |
| commit | 01dbd02341d4afa753830a1e642a59c8f7a0bbee (patch) | |
| tree | 1aef3e61293d72e121035c98cce68865fd45e932 /src | |
| parent | 6a3f2ecbc1ae60e533f75563b39a6b035b3cc93f (diff) | |
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.
```
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ | |||
| 1 | #include <errno.h> | 1 | #include <errno.h> |
| 2 | #if defined(__FreeBSD__) | ||
| 3 | #define _WITH_GETLINE | ||
| 4 | #endif | ||
| 2 | #include <stdio.h> | 5 | #include <stdio.h> |
| 3 | #include <string.h> | 6 | #include <string.h> |
| 4 | 7 | ||
