Fix inet_ntop() on Windows.

This commit is contained in:
Bruno Silvestre 2015-03-12 17:05:53 -03:00
parent 1ab6fac919
commit 3862e76df9

View File

@ -9,7 +9,13 @@
#include <string.h> #include <string.h>
#if defined(WIN32) #if defined(WIN32)
#include <ws2tcpip.h>
#include <windows.h> #include <windows.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif #endif
#include <openssl/ssl.h> #include <openssl/ssl.h>
@ -20,11 +26,6 @@
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <lua.h> #include <lua.h>
#include <lauxlib.h> #include <lauxlib.h>