aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-01-05 21:18:10 +0000
committerRon Yorston <rmy@pobox.com>2015-01-05 21:18:10 +0000
commitf9bba0a50fafc7868630767a55cde9f5a16b8d76 (patch)
tree6749e1f5908daaa726dc195e3a04b7a6ac404690 /include/mingw.h
parent067f2e7eaf36deac1175eaf24eeb118adcd37179 (diff)
downloadbusybox-w32-f9bba0a50fafc7868630767a55cde9f5a16b8d76.tar.gz
busybox-w32-f9bba0a50fafc7868630767a55cde9f5a16b8d76.tar.bz2
busybox-w32-f9bba0a50fafc7868630767a55cde9f5a16b8d76.zip
Changes to allow building with MinGW-w64
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h5
1 files changed, 5 insertions, 0 deletions
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
122/* 122/*
123 * stdio.h 123 * stdio.h
124 */ 124 */
125#undef fseeko
125#define fseeko(f,o,w) fseek(f,o,w) 126#define fseeko(f,o,w) fseek(f,o,w)
126 127
127int fdprintf(int fd, const char *format, ...); 128int fdprintf(int fd, const char *format, ...);
@@ -252,6 +253,7 @@ int mingw_mkdir(const char *path, int mode);
252#if ENABLE_LFS 253#if ENABLE_LFS
253# define off_t off64_t 254# define off_t off64_t
254#endif 255#endif
256#undef lseek
255#define lseek _lseeki64 257#define lseek _lseeki64
256 258
257typedef int nlink_t; 259typedef int nlink_t;
@@ -277,6 +279,9 @@ struct mingw_stat {
277int mingw_lstat(const char *file_name, struct mingw_stat *buf); 279int mingw_lstat(const char *file_name, struct mingw_stat *buf);
278int mingw_stat(const char *file_name, struct mingw_stat *buf); 280int mingw_stat(const char *file_name, struct mingw_stat *buf);
279int mingw_fstat(int fd, struct mingw_stat *buf); 281int mingw_fstat(int fd, struct mingw_stat *buf);
282#undef lstat
283#undef stat
284#undef fstat
280#define lstat mingw_lstat 285#define lstat mingw_lstat
281#define stat mingw_stat 286#define stat mingw_stat
282#define fstat mingw_fstat 287#define fstat mingw_fstat