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:
committed by
Wolfgang Denk
parent
e852d36a1e
commit
64b1502133
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user