1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

server: Added missing include files for getaddrinfo on Windows.

This commit is contained in:
Andreas Schneider
2010-12-29 20:53:28 +01:00
parent 1267240810
commit 887d201bd3

View File

@@ -47,8 +47,17 @@
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
/*
* <wspiapi.h> is necessary for getaddrinfo before Windows XP, but it isn't
* available on some platforms like MinGW.
*/
#ifdef HAVE_WSPIAPI_H
# include <wspiapi.h>
#endif
#define SOCKOPT_TYPE_ARG4 char
/*