Windows support for inet_net_pton()

Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
Aaron Dierking 2018-06-14 11:38:32 -07:00 committed by Guillem Jover
parent aeea1f4083
commit 2ebe6d5a02

View File

@ -19,9 +19,14 @@
#include <sys/cdefs.h>
#include <sys/types.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <WinSock2.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include <assert.h>
#include <ctype.h>