From f9bba0a50fafc7868630767a55cde9f5a16b8d76 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 5 Jan 2015 21:18:10 +0000 Subject: Changes to allow building with MinGW-w64 --- include/mingw.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mingw.h') diff --git a/include/mingw.h b/include/mingw.h index 5f6016dee..12c5ef71d 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -122,6 +122,7 @@ NOIMPL(FAST_FUNC sigaction_set,int signo UNUSED_PARAM, const struct sigaction *s /* * stdio.h */ +#undef fseeko #define fseeko(f,o,w) fseek(f,o,w) int fdprintf(int fd, const char *format, ...); @@ -252,6 +253,7 @@ int mingw_mkdir(const char *path, int mode); #if ENABLE_LFS # define off_t off64_t #endif +#undef lseek #define lseek _lseeki64 typedef int nlink_t; @@ -277,6 +279,9 @@ struct mingw_stat { int mingw_lstat(const char *file_name, struct mingw_stat *buf); int mingw_stat(const char *file_name, struct mingw_stat *buf); int mingw_fstat(int fd, struct mingw_stat *buf); +#undef lstat +#undef stat +#undef fstat #define lstat mingw_lstat #define stat mingw_stat #define fstat mingw_fstat -- cgit v1.2.3-55-g6feb