Mercurial > hg > octave-nkf > gnulib-hg
changeset 391:d249a740d974
Always include system headers, but define-away any putenv prototype.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 28 Feb 1995 12:08:03 +0000 |
parents | db1c109d898d |
children | 06b27806e818 |
files | lib/putenv.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/putenv.c +++ b/lib/putenv.c @@ -24,6 +24,10 @@ #include <config.h> #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 <stdlib.h> #endif @@ -34,6 +38,8 @@ #include <unistd.h> #endif +#undef putenv + #if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR) #define strchr index #endif