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:
11
src/bind.c
11
src/bind.c
@@ -47,8 +47,17 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#include <winsock2.h>
|
#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
|
#define SOCKOPT_TYPE_ARG4 char
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user