Mercurial > hg > octave-lyh > gnulib-hg
changeset 959:6c940cbf4166
[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.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 01 Jul 1997 11:30:08 +0000 |
parents | 498dc8724967 |
children | 6f2958d80ce3 |
files | lib/putenv.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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