Mercurial > cpython-lru_cache-weakref
diff Modules/getpath.c @ 3416:b6c0a41e4a46 legacy-trunk
Include stdlib.h or declare getenv
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 25 Feb 1996 04:50:31 +0000 |
| parents | f0d9f800a4aa |
| children | f158edccc72c |
line wrap: on
line diff
--- a/Modules/getpath.c Sun Feb 25 04:50:30 1996 +0000 +++ b/Modules/getpath.c Sun Feb 25 04:50:31 1996 +0000 @@ -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"
