(inet_ntop) [_WIN32]: New. Windows equivalent for inet_ntop().
[_WIN32]: New in.h, inet.h, netdb.h. Windows equivalent for POSIX includes. (tcp_connect): Use new include files and inet_ntop(). Allows tcp_connect() to compile when HAVE_GETADDRINFO is enabled.
This commit is contained in:
parent
af4c12d9b3
commit
6d8ff43cd4
6 changed files with 147 additions and 2 deletions
|
@ -38,11 +38,9 @@
|
|||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#if !defined(_WIN32)
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
#include "empio.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue