From 0abdffdea615d82ea870d787068b5db0a1577b4d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 8 Aug 2024 12:40:33 -0400 Subject: [PATCH] Fix OpenBSD. --- deps/c-ares_config/ares_build.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deps/c-ares_config/ares_build.h b/deps/c-ares_config/ares_build.h index bd6f6b79..49037906 100644 --- a/deps/c-ares_config/ares_build.h +++ b/deps/c-ares_config/ares_build.h @@ -34,7 +34,7 @@ #define CARES_TYPEOF_ARES_SSIZE_T ssize_t #endif -#if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(_WIN32) +#if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) #define GETSERVBYNAME_R_ARGS 6 #define GETSERVBYPORT_R_ARGS 6 #define HAVE_GETSERVBYNAME_R 1 @@ -42,7 +42,12 @@ #define HAVE_PIPE2 1 #endif -#if !defined(__APPLE__) && !defined(_WIN32) +#if defined(__OpenBSD__) +#define GETSERVBYNAME_R_ARGS 4 +#define GETSERVBYPORT_R_ARGS 4 +#endif + +#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__OpenBSD__) #define HAVE_MALLOC_H 1 #define HAVE_EPOLL 1 #define HAVE_SYS_EPOLL_H 1