projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
861ff7f
)
Always include system headers, but define-away any putenv prototype.
author
Jim Meyering
<jim@meyering.net>
Tue, 28 Feb 1995 12:08:03 +0000
(12:08 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 28 Feb 1995 12:08:03 +0000
(12:08 +0000)
lib/putenv.c
patch
|
blob
|
history
diff --git
a/lib/putenv.c
b/lib/putenv.c
index 4c161a420d3796c45244771f494029c67e71c4cb..b39fb648218f1ad9f64de66b8cbe390292148dc7 100644
(file)
--- a/
lib/putenv.c
+++ b/
lib/putenv.c
@@
-24,6
+24,10
@@
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <config.h>
#endif
+/* Define-away any (possibly conflicting) prototype of putenv.
+ Many systems omit the `const' attribute on the argument. */
+#define putenv _sys_putenv
+
#if defined (__GNU_LIBRARY__) || defined (HAVE_STDLIB_H)
#include <stdlib.h>
#endif
@@
-34,6
+38,8
@@
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <unistd.h>
#endif
+#undef putenv
+
#if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR)
#define strchr index
#endif