mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
server: Added include files for getaddrinfo.
This commit is contained in:
16
src/server.c
16
src/server.c
@@ -28,8 +28,20 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
#include <netinet/in.h>
|
||||
|
||||
#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>
|
||||
#endif
|
||||
|
||||
#include "libssh/priv.h"
|
||||
|
||||
Reference in New Issue
Block a user