]> granicus.if.org Git - python/commitdiff
Include stdlib.h or declare getenv
authorGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:31 +0000 (04:50 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:31 +0000 (04:50 +0000)
Modules/getpath.c

index 8e1c00d4e74ece2d98d9172436e6b3a053e798fb..4e356ed8168a92dfd62832e429655df041521582 100644 (file)
@@ -1,6 +1,12 @@
 #include "Python.h"
 #include "osdefs.h"
 
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *getenv Py_PROTO((const char *));
+#endif
+
 
 #ifndef PYTHONPATH
 #define PYTHONPATH ".:/usr/local/lib/python"