Handle #1463 - add missing includes for windows

This commit is contained in:
Sergey Lyubka 2022-02-12 16:43:08 +00:00
parent 3e085ccbaa
commit 1adf7f6b2b
2 changed files with 4 additions and 0 deletions

View File

@ -342,6 +342,7 @@ struct timeval {
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
@ -368,6 +369,7 @@ typedef enum { false = 0, true = 1 } bool;
#include <ws2tcpip.h>
#endif
#include <process.h>
#include <winsock2.h>
// Protect from calls like std::snprintf in app code

View File

@ -19,6 +19,7 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
@ -45,6 +46,7 @@ typedef enum { false = 0, true = 1 } bool;
#include <ws2tcpip.h>
#endif
#include <process.h>
#include <winsock2.h>
// Protect from calls like std::snprintf in app code