diff options
| author | Sergey Fedorov <vital.had@gmail.com> | 2023-04-20 13:23:28 +0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2023-04-19 23:12:09 -0700 |
| commit | 085d9a5b3f53ed43f1d523a8f2c9abb403e483e1 (patch) | |
| tree | 06ec9c57a0a29666868dd6b2077950c1de1d446c /src/platform/posix | |
| parent | 0062eb8c0a87479498bf360d1f5a43900948827f (diff) | |
| download | nng-085d9a5b3f53ed43f1d523a8f2c9abb403e483e1.tar.gz nng-085d9a5b3f53ed43f1d523a8f2c9abb403e483e1.tar.bz2 nng-085d9a5b3f53ed43f1d523a8f2c9abb403e483e1.zip | |
posix_resolv_gai.c: add AI_NUMERICSERV where undefined
Diffstat (limited to 'src/platform/posix')
| -rw-r--r-- | src/platform/posix/posix_resolv_gai.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
