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 /coreutils/shuf.c | |
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 'coreutils/shuf.c')
-rw-r--r-- | coreutils/shuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/shuf.c b/coreutils/shuf.c index 466969745..d84a4fc37 100644 --- a/coreutils/shuf.c +++ b/coreutils/shuf.c | |||
@@ -212,7 +212,7 @@ int shuf_main(int argc, char **argv) | |||
212 | printf("%.*s%0*llu%c", pfx_len, pfx, padding_width, lo + (uintptr_t)lines[i], eol); | 212 | printf("%.*s%0*llu%c", pfx_len, pfx, padding_width, lo + (uintptr_t)lines[i], eol); |
213 | else | 213 | else |
214 | #endif | 214 | #endif |
215 | printf("%llu%c", lo + (uintptr_t)lines[i], eol); | 215 | printf("%"LL_FMT"u%c", lo + (uintptr_t)lines[i], eol); |
216 | } else | 216 | } else |
217 | printf("%s%c", lines[i], eol); | 217 | printf("%s%c", lines[i], eol); |
218 | } | 218 | } |