1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

include file fixes

This commit is contained in:
Daniel Stenberg 2003-10-08 13:07:08 +00:00
parent ff5b6ff528
commit e612f73374
2 changed files with 13 additions and 0 deletions

View File

@ -20,11 +20,21 @@
#ifndef HAVE_INET_PTON #ifndef HAVE_INET_PTON
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h> #include <arpa/inet.h>
#endif
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>

View File

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