summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-02-25 04:50:31 (GMT)
committerGuido van Rossum <guido@python.org>1996-02-25 04:50:31 (GMT)
commit468fc6af6803b35bdfe7868c530d0488f16a448b (patch)
treecafa8621acf50d36e054f8a50f66c002e5402e24 /Modules
parent485f2da5a1fc799c0fbe87f61646b0a28af59cbf (diff)
downloadcpython-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.c6
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"