diff options
Diffstat (limited to 'nt/inc/ms-w32.h')
-rw-r--r-- | nt/inc/ms-w32.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index d169b40bee1..7de94ca0153 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -34,6 +34,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ # ifdef __MINGW64_VERSION_MAJOR # define MINGW_W64 # endif +# if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5001000L +/* Avoid warnings about gettimeofday being deprecated. */ +# undef __POSIX_2008_DEPRECATED +# define __POSIX_2008_DEPRECATED +# endif #endif /* #undef const */ @@ -306,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 |