1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-05 20:43:51 +02:00

Define-away putenv only if it's not already defined.

This commit is contained in:
Jim Meyering
1997-06-29 20:12:52 +00:00
parent 90c131fa21
commit 551c02f7b6

View File

@@ -24,8 +24,11 @@
#endif
/* Define-away any (possibly conflicting) prototype of putenv.
Many systems omit the `const' attribute on the argument. */
#define putenv _sys_putenv
Many systems omit the `const' attribute on the argument.
Define-away only if it's not already defined (e.g. to rpl_putenv). */
#ifndef putenv
# define putenv _sys_putenv
#endif
#if defined (__GNU_LIBRARY__) || defined (HAVE_STDLIB_H)
# include <stdlib.h>
@@ -37,7 +40,9 @@
# include <unistd.h>
#endif
#undef putenv
#ifndef putenv
# undef putenv
#endif
#if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR)
# define strchr index