summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTimo Teras2011-06-29 02:19:58 +0200
committerDenys Vlasenko2011-06-29 02:19:58 +0200
commit0a5b310067abfde9bf74a42352fc421e1c27e2b9 (patch)
treeae491b7ba5150035850c7e535a16060ce63735d1 /include
parentb9ba580917b59e4770ba99db7c61288f2476eb61 (diff)
downloadbusybox-0a5b310067abfde9bf74a42352fc421e1c27e2b9.zip
busybox-0a5b310067abfde9bf74a42352fc421e1c27e2b9.tar.gz
platform.c: provide getline implementation
Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index cbe85f4..eafc3fc 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -350,6 +350,7 @@ typedef unsigned smalluint;
#define HAVE_STRSIGNAL 1
#define HAVE_STRVERSCMP 1
#define HAVE_VASPRINTF 1
+#define HAVE_GETLINE 1
#define HAVE_XTABS 1
#define HAVE_MNTENT_H 1
#define HAVE_NET_ETHERNET_H 1
@@ -470,4 +471,8 @@ extern char *strsep(char **stringp, const char *delim) FAST_FUNC;
extern int vasprintf(char **string_ptr, const char *format, va_list p) FAST_FUNC;
#endif
+#ifndef HAVE_GETLINE
+extern ssize_t getline(char **lineptr, size_t *n, FILE *stream) FAST_FUNC;
+#endif
+
#endif