diff options
author | Guido van Rossum <guido@python.org> | 1996-02-25 04:50:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-02-25 04:50:31 (GMT) |
commit | 468fc6af6803b35bdfe7868c530d0488f16a448b (patch) | |
tree | cafa8621acf50d36e054f8a50f66c002e5402e24 /Modules | |
parent | 485f2da5a1fc799c0fbe87f61646b0a28af59cbf (diff) | |
download | cpython-468fc6af6803b35bdfe7868c530d0488f16a448b.zip cpython-468fc6af6803b35bdfe7868c530d0488f16a448b.tar.gz cpython-468fc6af6803b35bdfe7868c530d0488f16a448b.tar.bz2 |
Include stdlib.h or declare getenv
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 6 |
1 files changed, 6 insertions, 0 deletions
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" |