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:
14
src/server.c
14
src/server.c
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user