From 01f6e87592be18c7899c6784600d8cf60daea5fa Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 28 Feb 1995 12:08:03 +0000 Subject: [PATCH] Always include system headers, but define-away any putenv prototype. --- lib/putenv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/putenv.c b/lib/putenv.c index 4c161a420d..b39fb64821 100644 --- a/lib/putenv.c +++ b/lib/putenv.c @@ -24,6 +24,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif +/* Define-away any (possibly conflicting) prototype of putenv. + Many systems omit the `const' attribute on the argument. */ +#define putenv _sys_putenv + #if defined (__GNU_LIBRARY__) || defined (HAVE_STDLIB_H) #include #endif @@ -34,6 +38,8 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif +#undef putenv + #if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR) #define strchr index #endif -- 2.30.2