From 534c573adf534c29fce8a23a46eb82f154885588 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 28 Oct 2019 20:58:08 +0100 Subject: Add a minimal fallback implementation for getline() Signed-off-by: David Oberhollenzer --- include/util/compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/util') diff --git a/include/util/compat.h b/include/util/compat.h index 8566090..5c9e4fb 100644 --- a/include/util/compat.h +++ b/include/util/compat.h @@ -110,6 +110,12 @@ struct stat { #include #endif +#ifndef HAVE_GETLINE +#include + +ssize_t getline(char **line, size_t *n, FILE *fp); +#endif + #ifndef HAVE_STRNDUP char *strndup(const char *str, size_t max_len); #endif -- cgit v1.2.3