From 468fc6af6803b35bdfe7868c530d0488f16a448b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:31 +0000 Subject: [PATCH] Include stdlib.h or declare getenv --- Modules/getpath.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/getpath.c b/Modules/getpath.c index 8e1c00d4e7..4e356ed816 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -1,6 +1,12 @@ #include "Python.h" #include "osdefs.h" +#ifdef HAVE_STDLIB_H +#include +#else +extern char *getenv Py_PROTO((const char *)); +#endif + #ifndef PYTHONPATH #define PYTHONPATH ".:/usr/local/lib/python" -- 2.50.1