diff options
author | Jim Meyering <jim@meyering.net> | 1997-07-01 11:30:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-07-01 11:30:08 +0000 |
commit | 059ccb6ac7ed566f2ef2b8475c499a618d2708a8 (patch) | |
tree | 59887a6f93e784326f88d6118585014e8c972745 /lib | |
parent | 5f14bb768ead79db4229309068cf966a36e83969 (diff) | |
download | coreutils-059ccb6ac7ed566f2ef2b8475c499a618d2708a8.tar.xz |
[putenv]: Undefine before including system headers.
Otherwise, the declaration of *rpl_putenv* conflicts with the system
prototype on at least Irix5.3. From Marcus Daniels.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/putenv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/putenv.c b/lib/putenv.c index 087b8f491..44b89fdf3 100644 --- a/lib/putenv.c +++ b/lib/putenv.c @@ -23,6 +23,11 @@ # include <config.h> #endif +/* Disable the definition of putenv to rpl_putenv (from config.h) in this + file. Otherwise, we'd get conflicting prototypes for rpl_putenv on + systems like Irix 5.3. */ +#undef putenv + #if defined (__GNU_LIBRARY__) || defined (HAVE_STDLIB_H) # include <stdlib.h> #endif |