aboutsummaryrefslogtreecommitdiff
path: root/include/util/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/compat.h')
-rw-r--r--include/util/compat.h6
1 files changed, 6 insertions, 0 deletions
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 <sys/sysmacros.h>
#endif
+#ifndef HAVE_GETLINE
+#include <stdio.h>
+
+ssize_t getline(char **line, size_t *n, FILE *fp);
+#endif
+
#ifndef HAVE_STRNDUP
char *strndup(const char *str, size_t max_len);
#endif