aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/shuf.c2
-rw-r--r--include/mingw.h6
-rw-r--r--win32/winansi.c4
3 files changed, 10 insertions, 2 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 }
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
147IMPL(setlinebuf, void, ,FILE * UNUSED_PARAM) 147IMPL(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, ...);
477int mingw_xopen(const char *filename, int oflags); 477int mingw_xopen(const char *filename, int oflags);
478ssize_t mingw_open_read_close(const char *fn, void *buf, size_t size) FAST_FUNC; 478ssize_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
480ssize_t mingw_read(int fd, void *buf, size_t count); 484ssize_t mingw_read(int fd, void *buf, size_t count);
481int mingw_close(int fd); 485int mingw_close(int fd);
482int pipe(int filedes[2]); 486int pipe(int filedes[2]);
diff --git a/win32/winansi.c b/win32/winansi.c
index 14fbee75f..84652b5f2 100644
--- a/win32/winansi.c
+++ b/win32/winansi.c
@@ -75,6 +75,10 @@ static int is_wine(void)
75#define DISABLE_NEWLINE_AUTO_RETURN 0x0008 75#define DISABLE_NEWLINE_AUTO_RETURN 0x0008
76#endif 76#endif
77 77
78#ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
79#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
80#endif
81
78int terminal_mode(int reset) 82int terminal_mode(int reset)
79{ 83{
80 static int mode = -1; 84 static int mode = -1;