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_getenv.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_getenv.h')
-rw-r--r-- | ares_getenv.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ares_getenv.h b/ares_getenv.h new file mode 100644 index 0000000..6da6cc5 --- /dev/null +++ b/ares_getenv.h @@ -0,0 +1,26 @@ +#ifndef HEADER_CARES_GETENV_H +#define HEADER_CARES_GETENV_H + + +/* Copyright 1998 by the Massachusetts Institute of Technology. + * + * Permission to use, copy, modify, and distribute this + * software and its documentation for any purpose and without + * fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright + * notice and this permission notice appear in supporting + * documentation, and that the name of M.I.T. not be used in + * advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. + * M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" + * without express or implied warranty. + */ + +#include "ares_setup.h" + +#ifndef HAVE_GETENV +extern char *ares_getenv(const char *name); +#endif + +#endif /* HEADER_CARES_GETENV_H */ |