From 64b150213365db6be97a98d25884f87d83caacaf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 8 Jan 2010 02:48:03 -0500 Subject: getline: split out for darwin systems At least on OS X 10.5 and older, getline does not exist. So split out the function from the mingw code so that we can pull it in for Darwin systems. Signed-off-by: Mike Frysinger --- tools/mingw_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mingw_support.h') diff --git a/tools/mingw_support.h b/tools/mingw_support.h index 27936746bda..ee07290b5a2 100644 --- a/tools/mingw_support.h +++ b/tools/mingw_support.h @@ -45,6 +45,6 @@ int fsync(int fd); void *mmap(void *, size_t, int, int, int, int); int munmap(void *, size_t); char *strtok_r(char *s, const char *delim, char **save_ptr); -int getline(char **lineptr, size_t *n, FILE *stream); +#include "getline.h" #endif /* __MINGW_SUPPORT_H_ */ -- cgit v1.2.3