From 55138753c63cb7a6d1191028df25b689b73baefa Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 4 Jul 2006 02:27:11 +0000 Subject: Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions. --- lib/memdebug.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/memdebug.h') diff --git a/lib/memdebug.h b/lib/memdebug.h index 4d965fb1f..d64defed6 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -96,10 +96,14 @@ CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source); #define getaddrinfo(host,serv,hint,res) \ curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__) #endif + +#ifdef HAVE_GETNAMEINFO #undef getnameinfo #define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \ curl_dogetnameinfo(sa,salen,host,hostlen,serv,servlen,flags, __LINE__, \ __FILE__) +#endif + #undef freeaddrinfo #define freeaddrinfo(data) \ curl_dofreeaddrinfo(data,__LINE__,__FILE__) -- cgit v1.2.1