diff options
author | Ron Yorston <rmy@pobox.com> | 2023-06-14 11:27:06 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-06-14 11:35:12 +0100 |
commit | 0476a3411f16604422bfafddcc3ca0b9791d5188 (patch) | |
tree | 944c8f30bd6ecf4b5edcbdbea0a706ea83642ea0 /include | |
parent | fd348a7c819f8f4fe010b0c2004cf5454558380c (diff) | |
download | busybox-w32-0476a3411f16604422bfafddcc3ca0b9791d5188.tar.gz busybox-w32-0476a3411f16604422bfafddcc3ca0b9791d5188.tar.bz2 busybox-w32-0476a3411f16604422bfafddcc3ca0b9791d5188.zip |
Fixes for old mingw-w64
Allow current busybox-w32 to build with the CentOS 6 version of
mingw-w64.
- Fix declaration of setlinebuf(). (GitLab issue 116)
- Define ENABLE_VIRTUAL_TERMINAL_INPUT. (GitLab issue 117)
- Define IO_REPARSE_TAG_APPEXECLINK.
- Avoid a compiler warning in coreutils/shuf.c.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index 22c59f483..5d2fb39ee 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -144,7 +144,7 @@ pid_t mingw_fork_compressor(int fd, const char *compressor, const char *mode); | |||
144 | #define popen mingw_popen | 144 | #define popen mingw_popen |
145 | #define pclose mingw_pclose | 145 | #define pclose mingw_pclose |
146 | 146 | ||
147 | IMPL(setlinebuf, void, ,FILE * UNUSED_PARAM) | 147 | IMPL(setlinebuf, void, ,FILE *fd UNUSED_PARAM) |
148 | 148 | ||
149 | /* | 149 | /* |
150 | * ANSI emulation wrappers | 150 | * ANSI emulation wrappers |
@@ -477,6 +477,10 @@ int mingw_open (const char *filename, int oflags, ...); | |||
477 | int mingw_xopen(const char *filename, int oflags); | 477 | int mingw_xopen(const char *filename, int oflags); |
478 | ssize_t mingw_open_read_close(const char *fn, void *buf, size_t size) FAST_FUNC; | 478 | ssize_t mingw_open_read_close(const char *fn, void *buf, size_t size) FAST_FUNC; |
479 | 479 | ||
480 | #ifndef IO_REPARSE_TAG_APPEXECLINK | ||
481 | # define IO_REPARSE_TAG_APPEXECLINK 0x8000001b | ||
482 | #endif | ||
483 | |||
480 | ssize_t mingw_read(int fd, void *buf, size_t count); | 484 | ssize_t mingw_read(int fd, void *buf, size_t count); |
481 | int mingw_close(int fd); | 485 | int mingw_close(int fd); |
482 | int pipe(int filedes[2]); | 486 | int pipe(int filedes[2]); |