diff options
Diffstat (limited to 'nt/inc/sys/socket.h')
-rw-r--r-- | nt/inc/sys/socket.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h index 5050720a3f4..a9825ee197d 100644 --- a/nt/inc/sys/socket.h +++ b/nt/inc/sys/socket.h @@ -5,7 +5,7 @@ This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -51,7 +51,13 @@ Boston, MA 02110-1301, USA. */ #define timeval ws_timeval #endif -#include <winsock.h> +#include <winsock2.h> +#include <ws2tcpip.h> +/* process.c uses uint16_t (from C99) for IPv6, but + apparently it is not defined in some versions of mingw and msvc. */ +#ifndef UINT16_C +typedef unsigned short uint16_t; +#endif /* redefine select to reference our version */ #ifdef MUST_REDEF_SELECT |