Commit e612f733 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

include file fixes

parent ff5b6ff5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -20,11 +20,21 @@

#ifndef HAVE_INET_PTON

#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <string.h>
#include <errno.h>

+3 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@

#ifdef HAVE_INET_PTON
#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#else
int Curl_inet_pton(int, const char *, void *);
#endif