+/* 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
+#if defined (__GNU_LIBRARY__) || defined (HAVE_STRING_H)
+# include <string.h>
+#endif
+#if defined (__GNU_LIBRARY__) || defined (HAVE_UNISTD_H)
+# include <unistd.h>
+#endif
+
+#if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR)
+# define strchr index
+#endif
+#if !defined (__GNU_LIBRARY__) && !defined (HAVE_MEMCPY)
+# define memcpy(d,s,n) bcopy ((s), (d), (n))
+#endif
+
+#if HAVE_GNU_LD
+# define environ __environ
+#else
+extern char **environ;
+#endif
+
+