commit | 468fc6af6803b35bdfe7868c530d0488f16a448b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Feb 25 04:50:31 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Feb 25 04:50:31 1996 +0000 |
tree | cafa8621acf50d36e054f8a50f66c002e5402e24 | |
parent | 485f2da5a1fc799c0fbe87f61646b0a28af59cbf [diff] [blame] |
Include stdlib.h or declare getenv
diff --git a/Modules/getpath.c b/Modules/getpath.c index 8e1c00d..4e356ed 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c
@@ -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"