From 822fd0f8771d3792da0a08276ab0400b2a68f07e Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 23 Mar 2011 13:44:42 +0100 Subject: build: use getenv() replacement function for systems which lack it --- ares_getenv.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ares_getenv.h (limited to 'ares_getenv.h') 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 */ -- cgit v1.2.3