From 2ff9dca17c5ba1658f8083e20f3bcc7e90c57bb2 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 3 Dec 2018 12:29:34 +0200 Subject: Fix WINDOWSNT/DOS_NT build Recent changes in sysdep.c and emacsclient unnecessarily removed useful code from DOS_NT builds. This changeset reinstates that code. * nt/inc/ms-w32.h (tcdrain): Redirect to _commit. (fdatasync): No need to redirect anymore. * lib-src/emacsclient.c (flush_stdout): Don't avoid calling tcdrain on DOS_NT platforms. * src/sysdep.c (reset_sys_modes): Don't ifdef away the call to tcdrain on DOS_NT platforms. --- nt/inc/ms-w32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nt/inc') diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index e4dec04fb8b..df35dff91b5 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -311,7 +311,7 @@ extern int execve (const char *, char * const *, char * const *); #else extern intptr_t execve (const char *, char * const *, char * const *); #endif -#define fdatasync _commit +#define tcdrain _commit #define fdopen _fdopen #define fsync _commit #define ftruncate _chsize -- cgit v1.2.1