diff options
author | Ron Yorston <rmy@pobox.com> | 2015-01-05 21:18:10 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-01-05 21:18:10 +0000 |
commit | f9bba0a50fafc7868630767a55cde9f5a16b8d76 (patch) | |
tree | 6749e1f5908daaa726dc195e3a04b7a6ac404690 /include/mingw.h | |
parent | 067f2e7eaf36deac1175eaf24eeb118adcd37179 (diff) | |
download | busybox-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.h | 5 |
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 | ||
127 | int fdprintf(int fd, const char *format, ...); | 128 | int 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 | ||
257 | typedef int nlink_t; | 259 | typedef int nlink_t; |
@@ -277,6 +279,9 @@ struct mingw_stat { | |||
277 | int mingw_lstat(const char *file_name, struct mingw_stat *buf); | 279 | int mingw_lstat(const char *file_name, struct mingw_stat *buf); |
278 | int mingw_stat(const char *file_name, struct mingw_stat *buf); | 280 | int mingw_stat(const char *file_name, struct mingw_stat *buf); |
279 | int mingw_fstat(int fd, struct mingw_stat *buf); | 281 | int 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 |