summaryrefslogtreecommitdiff
path: root/tools/mingw_support.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-01-08 02:48:03 -0500
committerWolfgang Denk <wd@denx.de>2010-01-26 00:07:13 +0100
commit64b150213365db6be97a98d25884f87d83caacaf (patch)
treeba4fa5cceead362257f8f8aa0c80333721798ec4 /tools/mingw_support.h
parente852d36a1e12864ab0656729c45c846e65efa4ee (diff)
downloadu-boot-imx-64b150213365db6be97a98d25884f87d83caacaf.zip
u-boot-imx-64b150213365db6be97a98d25884f87d83caacaf.tar.gz
u-boot-imx-64b150213365db6be97a98d25884f87d83caacaf.tar.bz2
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>
Diffstat (limited to 'tools/mingw_support.h')
-rw-r--r--tools/mingw_support.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mingw_support.h b/tools/mingw_support.h
index 2793674..ee07290 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_ */