diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-06-30 13:28:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-06-30 13:28:58 +0000 |
commit | 883479f01e3792d2ef8428839fbd84a1fe7c1520 (patch) | |
tree | 03458b31735afc2d929533563437b14c6a6974d9 /lib/memdebug.h | |
parent | b37a0b05123b0a390e06acdb3272ca67fcb5993a (diff) | |
download | curl-883479f01e3792d2ef8428839fbd84a1fe7c1520.tar.gz |
enable memory debugging on tru64 with ipv6 support by doing a little different
defining, since the system headers themselves redefine getaddrinfo
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r-- | lib/memdebug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h index 8ce11ed88..23b420e2e 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -85,8 +85,16 @@ CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source); #define accept(sock,addr,len)\ curl_accept(sock,addr,len,__LINE__,__FILE__) +#if defined(getaddrinfo) && defined(__osf__) +/* OSF/1 and Tru64 have getaddrinfo as a define already, so we cannot define + our macro as for other platforms. Instead, we redefine the new name they + define getaddrinfo to become! */ +#define ogetaddrinfo(host,serv,hint,res) \ + curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__) +#else #define getaddrinfo(host,serv,hint,res) \ curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__) +#endif #define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \ curl_dogetnameinfo(sa,salen,host,hostlen,serv,servlen,flags, __LINE__, \ __FILE__) |