diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-13 16:37:20 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-13 16:37:20 +0300 |
commit | fbfdc07511283a111192e32970bee909016b47d2 (patch) | |
tree | 38c32f8ffcde50579a993e8a06163e688c1f284a /compat/mingw.h | |
parent | bce4fc60caca82af9e02983abcbbc348d2aadfe4 (diff) | |
parent | ff8978d533207f472b183223d88786b1053f1989 (diff) |
Merge branch 'js/mingw-isatty-and-dup2'
Windows fix.
* js/mingw-isatty-and-dup2:
mingw: fix isatty() after dup2()
Diffstat (limited to 'compat/mingw.h')
-rw-r--r-- | compat/mingw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 4c14e30835..a577df0d74 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -406,6 +406,9 @@ int mingw_raise(int sig); int winansi_isatty(int fd); #define isatty winansi_isatty +int winansi_dup2(int oldfd, int newfd); +#define dup2 winansi_dup2 + void winansi_init(void); HANDLE winansi_get_osfhandle(int fd); |