-/* Define-away any (possibly conflicting) prototype of 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
+#include <sys/types.h>
+
+/* Include errno.h *after* sys/types.h to work around header problems
+ on AIX 3.2.5. */
+#include <errno.h>
+
+/* Don't include stdlib.h because some (e.g., Solaris 2.7) declare putenv
+ with a non-const argument. That would conflict with the declaration of
+ rpl_putenv below (due to the #define putenv rpl_putenv from config.h). */
+
+char *malloc ();
+void free ();