Mercurial > hg > octave-nkf > gnulib-hg
changeset 955:8afe46e6ea6a
fix it right
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 29 Jun 1997 20:18:58 +0000 |
parents | e5fd4dda85bb |
children | 24e82295daf8 |
files | lib/putenv.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/putenv.c +++ b/lib/putenv.c @@ -25,7 +25,7 @@ /* Define-away any (possibly conflicting) prototype of putenv. Many systems omit the `const' attribute on the argument. - Define-away only if it's not already defined (e.g. to rpl_putenv). */ + But don't define-away if it's already defined (e.g. to rpl_putenv). */ #ifndef putenv # define putenv _sys_putenv #endif @@ -40,9 +40,7 @@ # include <unistd.h> #endif -#ifndef putenv -# undef putenv -#endif +#define _sys_putenv putenv #if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR) # define strchr index