mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
test/dns: in solaris under EMFILE the error is EAI_FAIL
(cherry picked from commit d234902da713cb722596f6bf66bb0dde8a3842dc)
This commit is contained in:
parent
ce4e2b7b8c
commit
5a26e7bd07
@ -1218,10 +1218,13 @@ test_bufferevent_connect_hostname(void *arg)
|
|||||||
|
|
||||||
if (emfile) {
|
if (emfile) {
|
||||||
success = BEV_EVENT_ERROR;
|
success = BEV_EVENT_ERROR;
|
||||||
#ifdef __linux__
|
#if defined(__linux__)
|
||||||
/* on linux glibc/musl reports EAI_SYSTEM, when getaddrinfo() cannot
|
/* on linux glibc/musl reports EAI_SYSTEM, when getaddrinfo() cannot
|
||||||
* open file for resolving service. */
|
* open file for resolving service. */
|
||||||
default_error = EVUTIL_EAI_SYSTEM;
|
default_error = EVUTIL_EAI_SYSTEM;
|
||||||
|
#elif defined(__sun__)
|
||||||
|
/* on solaris it returns EAI_FAIL */
|
||||||
|
default_error = EVUTIL_EAI_FAIL;
|
||||||
#else
|
#else
|
||||||
/* on osx/freebsd it returns EAI_NONAME */
|
/* on osx/freebsd it returns EAI_NONAME */
|
||||||
default_error = EVUTIL_EAI_NONAME;
|
default_error = EVUTIL_EAI_NONAME;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user