From 17c7fd2117291732b0ffec394658028578233c1a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 14 Sep 2006 21:16:11 +0000 Subject: Applied temporary fix to error code returned by pj_gethostbyname(). Under *nix, the error code is returned in h_errno, and the error string is reported by hstrerror(). But it is a bit too complex to support this for the moment, so we just return PJ_ERESOLVE for any failure returned by gethostbyname() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@722 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/errno.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pjlib/include/pj') diff --git a/pjlib/include/pj/errno.h b/pjlib/include/pj/errno.h index 8b5906cb..5744a754 100644 --- a/pjlib/include/pj/errno.h +++ b/pjlib/include/pj/errno.h @@ -285,6 +285,11 @@ PJ_DECL(pj_status_t) pj_register_strerror(pj_status_t start_code, * Size is too big. */ #define PJ_ETOOBIG (PJ_ERRNO_START_STATUS + 17)/* 70017 */ +/** + * @hideinitializer + * Error in gethostbyname() + */ +#define PJ_ERESOLVE (PJ_ERRNO_START_STATUS + 18)/* 70018 */ /** @} */ /* pj_errnum */ -- cgit v1.2.3