aboutsummaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/mingw.h5
-rw-r--r--include/platform.h2
2 files changed, 7 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
diff --git a/include/platform.h b/include/platform.h
index d9b82b2ed..e2b61592e 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -425,7 +425,9 @@ typedef unsigned smalluint;
425# undef HAVE_STRSEP 425# undef HAVE_STRSEP
426# undef HAVE_STRSIGNAL 426# undef HAVE_STRSIGNAL
427# undef HAVE_STRVERSCMP 427# undef HAVE_STRVERSCMP
428#if !defined(__MINGW64_VERSION_MAJOR)
428# undef HAVE_VASPRINTF 429# undef HAVE_VASPRINTF
430#endif
429# undef HAVE_UNLOCKED_STDIO 431# undef HAVE_UNLOCKED_STDIO
430# undef HAVE_UNLOCKED_LINE_OPS 432# undef HAVE_UNLOCKED_LINE_OPS
431#endif 433#endif