mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
include file fixes
This commit is contained in:
parent
ff5b6ff528
commit
e612f73374
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user