diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-03-18 21:35:56 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-03-18 21:54:37 +0100 |
commit | 6cce3d71537cd9dc077c407d865b8b8ffe1ee77f (patch) | |
tree | 8f8bddfe95c686b4af2ff1c8a74836029cf88693 /src | |
parent | ca8dcb7bff9f9ed4cc52875a772246011e93cf31 (diff) |
msgfile: Fix warning on BSDs stdio
msgfile.c:116:16: warning: implicit declaration of function 'getline' is invalid in C99
[-Wimplicit-function-declaration]
while (getline(&line, &n, file) != -1) {
Diffstat (limited to 'src')
-rw-r--r-- | src/msgfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/msgfile.c b/src/msgfile.c index 1a991841..bf36bf36 100644 --- a/src/msgfile.c +++ b/src/msgfile.c @@ -21,6 +21,8 @@ * */ +#define _WITH_GETLINE + #include <osmocom/core/msgfile.h> #include <osmocom/core/talloc.h> |