aboutsummaryrefslogtreecommitdiffstats
path: root/src/msgfile.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-18 21:35:56 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-18 21:54:37 +0100
commit6cce3d71537cd9dc077c407d865b8b8ffe1ee77f (patch)
tree8f8bddfe95c686b4af2ff1c8a74836029cf88693 /src/msgfile.c
parentca8dcb7bff9f9ed4cc52875a772246011e93cf31 (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/msgfile.c')
-rw-r--r--src/msgfile.c2
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>