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

server: Added include files for getaddrinfo.

This commit is contained in:
Andreas Schneider
2010-12-29 20:36:14 +01:00
parent 13f3679b2f
commit 296767afc4

View File

@@ -28,7 +28,19 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _WIN32
#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
#else
# include <netinet/in.h> # include <netinet/in.h>
#endif #endif