summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-03-23 13:44:42 +0100
committerYang Tse <yangsita@gmail.com>2011-03-23 13:44:42 +0100
commit822fd0f8771d3792da0a08276ab0400b2a68f07e (patch)
treef271d9fa9eb15e8d170723ab632828656953f257 /ares_private.h
parent3abad87d88fc77295230ed8c732f24bfb05f4397 (diff)
downloadc-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.h5
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)