diff options
| author | Eli Zaretskii | 2018-07-28 17:21:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-07-28 17:21:53 +0300 |
| commit | bd52f37cae3fbc25e576f9b0a1ba42596790965f (patch) | |
| tree | e86b9a18ecaaa235a8e11023a9169b52f9656986 | |
| parent | 024d20f81e643fe1739d28d16501a8c4f7a860c6 (diff) | |
| download | emacs-bd52f37cae3fbc25e576f9b0a1ba42596790965f.tar.gz emacs-bd52f37cae3fbc25e576f9b0a1ba42596790965f.zip | |
; Fix last change: only MinGW runtime 5.0.2 and later needs that.
| -rw-r--r-- | lib-src/pop.c | 2 | ||||
| -rw-r--r-- | nt/inc/ms-w32.h | 2 | ||||
| -rw-r--r-- | nt/inc/sys/socket.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/pop.c b/lib-src/pop.c index 0b9204576bd..731f951fd14 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -30,7 +30,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 30 | #include "ntlib.h" | 30 | #include "ntlib.h" |
| 31 | #undef _WIN32_WINNT | 31 | #undef _WIN32_WINNT |
| 32 | #define _WIN32_WINNT 0x0501 /* for getaddrinfo stuff */ | 32 | #define _WIN32_WINNT 0x0501 /* for getaddrinfo stuff */ |
| 33 | #if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5000000L | 33 | #if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5000002L |
| 34 | # include <windows.h> | 34 | # include <windows.h> |
| 35 | #else | 35 | #else |
| 36 | # include <winsock2.h> | 36 | # include <winsock2.h> |
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index 0ab46e98328..d15b6da1a74 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h | |||
| @@ -455,7 +455,7 @@ extern char *get_emacs_configuration_options (void); | |||
| 455 | windows.h. For this to have proper effect, config.h must always be | 455 | windows.h. For this to have proper effect, config.h must always be |
| 456 | included before windows.h. */ | 456 | included before windows.h. */ |
| 457 | #define _WINSOCKAPI_ 1 | 457 | #define _WINSOCKAPI_ 1 |
| 458 | #if defined __MINGW32_VERSION && __MINGW32_VERSION < 5000000L | 458 | #if !(defined __MINGW32_VERSION && __MINGW32_VERSION >= 5000002L) |
| 459 | /* mingw.org's MinGW 5.x changed how it includes winsock.h and time.h, | 459 | /* mingw.org's MinGW 5.x changed how it includes winsock.h and time.h, |
| 460 | and now defining _WINSOCK_H skips the definition of struct timeval, | 460 | and now defining _WINSOCK_H skips the definition of struct timeval, |
| 461 | which we don't want. */ | 461 | which we don't want. */ |
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h index 3ea9542b05c..de282c467e6 100644 --- a/nt/inc/sys/socket.h +++ b/nt/inc/sys/socket.h | |||
| @@ -49,7 +49,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 49 | #define timeval ws_timeval | 49 | #define timeval ws_timeval |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | #if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5000000L | 52 | #if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5000002L |
| 53 | /* Need winerror.h before winsock2.h with mingw.org's MinGW 5.x, | 53 | /* Need winerror.h before winsock2.h with mingw.org's MinGW 5.x, |
| 54 | otherwise some error codes are not defined. */ | 54 | otherwise some error codes are not defined. */ |
| 55 | # include <winerror.h> | 55 | # include <winerror.h> |