[putenv]: Undefine before including system headers.
authorJim Meyering <jim@meyering.net>
Tue, 1 Jul 1997 11:30:08 +0000 (11:30 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jul 1997 11:30:08 +0000 (11:30 +0000)
Otherwise, the declaration of *rpl_putenv* conflicts with the system
prototype on at least Irix5.3.  From Marcus Daniels.

lib/putenv.c

index 087b8f49176502d08e75254d681db52c813b5145..44b89fdf32211057a40afef2ba61b8ad03548477 100644 (file)
 # 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