diff options
author | Yang Tse <yangsita@gmail.com> | 2011-03-23 13:44:42 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-03-23 13:44:42 +0100 |
commit | 822fd0f8771d3792da0a08276ab0400b2a68f07e (patch) | |
tree | f271d9fa9eb15e8d170723ab632828656953f257 /ares_private.h | |
parent | 3abad87d88fc77295230ed8c732f24bfb05f4397 (diff) | |
download | c-ares-822fd0f8771d3792da0a08276ab0400b2a68f07e.tar.gz c-ares-822fd0f8771d3792da0a08276ab0400b2a68f07e.tar.bz2 c-ares-822fd0f8771d3792da0a08276ab0400b2a68f07e.zip |
build: use getenv() replacement function for systems which lack it
Diffstat (limited to 'ares_private.h')
-rw-r--r-- | ares_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h index bf21abd..01a79b6 100644 --- a/ares_private.h +++ b/ares_private.h @@ -89,6 +89,11 @@ #include "ares_ipv6.h" #include "ares_llist.h" +#ifndef HAVE_GETENV +# include "ares_getenv.h" +# define getenv(ptr) ares_getenv(ptr) +#endif + #ifndef HAVE_STRDUP # include "ares_strdup.h" # define strdup(ptr) ares_strdup(ptr) |