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 <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2010-01-08 02:48:03 -05:00
committed by Wolfgang Denk
parent e852d36a1e
commit 64b1502133
6 changed files with 111 additions and 99 deletions

1
tools/getline.h Normal file
View File

@@ -0,0 +1 @@
int getline(char **lineptr, size_t *n, FILE *stream);