summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-06-18 21:01:55 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-06-18 21:01:55 +0100
commit3a1fc7315c88868edb18e501879ce22e3c77567b (patch)
tree1c171aeceeccd26c30b1fefa2bac972ac8953413 /compat.h
parent3df68d6b00ad554f4527f2057792fc6468ab9375 (diff)
Add getline compat.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h5
1 files changed, 5 insertions, 0 deletions
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);