From 58dc681a9b810db4f7fc8b47d6c216bb169b7da4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 1 Jul 1997 11:30:08 +0000 Subject: [PATCH] [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. --- lib/putenv.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2