X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fputenv.c;h=b39fb648218f1ad9f64de66b8cbe390292148dc7;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=4c161a420d3796c45244771f494029c67e71c4cb;hpb=87346956de5c7c632b885c1fb300b37f537b013b;p=gnulib.git diff --git a/lib/putenv.c b/lib/putenv.c index 4c161a420..b39fb6482 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