From 085d9a5b3f53ed43f1d523a8f2c9abb403e483e1 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 20 Apr 2023 13:23:28 +0800 Subject: posix_resolv_gai.c: add AI_NUMERICSERV where undefined --- src/platform/posix/posix_resolv_gai.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c index 1c209f1f..c6abee5f 100644 --- a/src/platform/posix/posix_resolv_gai.c +++ b/src/platform/posix/posix_resolv_gai.c @@ -33,6 +33,10 @@ #define NNG_RESOLV_CONCURRENCY 4 #endif +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif + static nni_mtx resolv_mtx = NNI_MTX_INITIALIZER; static nni_cv resolv_cv = NNI_CV_INITIALIZER(&resolv_mtx); static bool resolv_fini = false; -- cgit v1.2.3-70-g09d2