From da24940efd2c1ef11b50d9ddc4c7c181780dcd81 Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Mon, 12 Feb 2024 07:32:28 +0800 Subject: [PATCH] Do not define HAVE_GETSERVBYPORT_R for platforms Android, Cygwin, Darwin --- deps/build-config/config_android/ares_config.h | 9 --------- deps/build-config/config_cygwin/ares_config.h | 9 --------- deps/build-config/config_darwin/ares_config.h | 9 --------- 3 files changed, 27 deletions(-) diff --git a/deps/build-config/config_android/ares_config.h b/deps/build-config/config_android/ares_config.h index 9b0176d..8a33cfa 100644 --- a/deps/build-config/config_android/ares_config.h +++ b/deps/build-config/config_android/ares_config.h @@ -46,12 +46,6 @@ /* Define to the type of arg 7 for getnameinfo. */ #define GETNAMEINFO_TYPE_ARG7 int -/* Specifies the number of arguments to getservbyport_r */ -#define GETSERVBYPORT_R_ARGS 6 - -/* Specifies the size of the buffer to pass to getservbyport_r */ -#define GETSERVBYPORT_R_BUFSIZE 4096 - /* Define to 1 if you have AF_INET6. */ #define HAVE_AF_INET6 1 @@ -127,9 +121,6 @@ /* Define to 1 if you have the getnameinfo function. */ #define HAVE_GETNAMEINFO 1 -/* Define to 1 if you have the getservbyport_r function. */ -#define HAVE_GETSERVBYPORT_R 1 - /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 diff --git a/deps/build-config/config_cygwin/ares_config.h b/deps/build-config/config_cygwin/ares_config.h index 66f97b3..2c5d39e 100644 --- a/deps/build-config/config_cygwin/ares_config.h +++ b/deps/build-config/config_cygwin/ares_config.h @@ -43,12 +43,6 @@ /* Define to the type of arg 7 for getnameinfo. */ #define GETNAMEINFO_TYPE_ARG7 int -/* Specifies the number of arguments to getservbyport_r */ -/* #undef GETSERVBYPORT_R_ARGS */ - -/* Specifies the size of the buffer to pass to getservbyport_r */ -/* #undef GETSERVBYPORT_R_BUFSIZE */ - /* Define to 1 if you have AF_INET6. */ #define HAVE_AF_INET6 1 @@ -118,9 +112,6 @@ /* Define to 1 if you have the getnameinfo function. */ #define HAVE_GETNAMEINFO 1 -/* Define to 1 if you have the getservbyport_r function. */ -/* #undef HAVE_GETSERVBYPORT_R */ - /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 diff --git a/deps/build-config/config_darwin/ares_config.h b/deps/build-config/config_darwin/ares_config.h index e127c27..4ad27c7 100644 --- a/deps/build-config/config_darwin/ares_config.h +++ b/deps/build-config/config_darwin/ares_config.h @@ -46,12 +46,6 @@ /* Define to the type of arg 7 for getnameinfo. */ #define GETNAMEINFO_TYPE_ARG7 int -/* Specifies the number of arguments to getservbyport_r */ -/* #undef GETSERVBYPORT_R_ARGS */ - -/* Specifies the size of the buffer to pass to getservbyport_r */ -/* #undef GETSERVBYPORT_R_BUFSIZE */ - /* Define to 1 if you have AF_INET6. */ #define HAVE_AF_INET6 1 @@ -127,9 +121,6 @@ /* Define to 1 if you have the getnameinfo function. */ #define HAVE_GETNAMEINFO 1 -/* Define to 1 if you have the getservbyport_r function. */ -/* #undef HAVE_GETSERVBYPORT_R */ - /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1