Configure c-ares for haiku a bit better.

This commit is contained in:
Cory McWilliams 2024-08-25 13:48:57 -04:00
parent ee0efa536a
commit aeefb9e536

View File

@ -34,23 +34,23 @@
#define CARES_TYPEOF_ARES_SSIZE_T ssize_t #define CARES_TYPEOF_ARES_SSIZE_T ssize_t
#endif #endif
#if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) #if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) && !defined(__HAIKU__)
#define GETSERVBYNAME_R_ARGS 6 #define GETSERVBYNAME_R_ARGS 6
#define GETSERVBYPORT_R_ARGS 6 #define GETSERVBYPORT_R_ARGS 6
#define HAVE_GETSERVBYNAME_R 1 #define HAVE_GETSERVBYNAME_R 1
#define HAVE_GETSERVBYPORT_R 1 #define HAVE_GETSERVBYPORT_R 1
#endif #endif
#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) #if !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) && !defined(__HAIKU__)
#define HAVE_PIPE2 1 #define HAVE_PIPE2 1
#endif #endif
#if defined(__OpenBSD__) #if defined(__OpenBSD__) || defined(__HAIKU__)
#define GETSERVBYNAME_R_ARGS 4 #define GETSERVBYNAME_R_ARGS 4
#define GETSERVBYPORT_R_ARGS 4 #define GETSERVBYPORT_R_ARGS 4
#endif #endif
#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) #if !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) && !defined(__HAIKU__)
#define HAVE_MALLOC_H 1 #define HAVE_MALLOC_H 1
#define HAVE_EPOLL 1 #define HAVE_EPOLL 1
#define HAVE_SYS_EPOLL_H 1 #define HAVE_SYS_EPOLL_H 1
@ -86,7 +86,9 @@
#define HAVE_GETENV 1 #define HAVE_GETENV 1
#define HAVE_GETHOSTNAME 1 #define HAVE_GETHOSTNAME 1
#define HAVE_GETNAMEINFO 1 #define HAVE_GETNAMEINFO 1
#if !defined(__HAIKU__)
#define HAVE_GETRANDOM 1 #define HAVE_GETRANDOM 1
#endif
#define HAVE_GETTIMEOFDAY 1 #define HAVE_GETTIMEOFDAY 1
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
#define HAVE_IF_NAMETOINDEX 1 #define HAVE_IF_NAMETOINDEX 1