diff options
author | Jim Meyering <jim@meyering.net> | 1997-06-29 20:18:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-06-29 20:18:58 +0000 |
commit | 3d9239c7502601cc53a794c6e2b33dfb354dc71d (patch) | |
tree | e9dca8adae8a73b89d8bed0d0712abdf238d989d /lib | |
parent | 551c02f7b6036641a7fd700b809e01a189aa85be (diff) | |
download | coreutils-3d9239c7502601cc53a794c6e2b33dfb354dc71d.tar.xz |
fix it right
Diffstat (limited to 'lib')
-rw-r--r-- | lib/putenv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/putenv.c b/lib/putenv.c index 5e9a8631e..43555c07e 100644 --- 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 |