From: Jim Meyering Date: Tue, 1 Jul 1997 11:30:08 +0000 (+0000) Subject: [putenv]: Undefine before including system headers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58dc681a9b810db4f7fc8b47d6c216bb169b7da4;p=pspp [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 087b8f4917..44b89fdf32 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