From 3a1fc7315c88868edb18e501879ce22e3c77567b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 18 Jun 2020 21:01:55 +0100 Subject: Add getline compat. --- compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 37f78e7b..5b23b178 100644 --- a/compat.h +++ b/compat.h @@ -345,6 +345,11 @@ int vasprintf(char **, const char *, va_list); char *fgetln(FILE *, size_t *); #endif +#ifndef HAVE_GETLINE +/* getline.c */ +ssize_t getline(char **, size_t *, FILE *); +#endif + #ifndef HAVE_SETENV /* setenv.c */ int setenv(const char *, const char *, int); -- cgit v1.2.3