From: Jim Meyering Date: Tue, 1 Jul 1997 11:30:08 +0000 (+0000) Subject: [putenv]: Undefine before including system headers. X-Git-Tag: SH-UTILS-1_16c~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=059ccb6ac7ed566f2ef2b8475c499a618d2708a8;p=platform%2Fupstream%2Fcoreutils.git [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. --- 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 #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 #endif