summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-12 11:05:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-12 11:05:12 (GMT)
commitcdc445122208cb90a59a468a7396b227e223c43a (patch)
treead9ca70705ab2c5a952aeeae91f0160394f98604 /Include/Python.h
parentedb60a7ba9daa607a8021f2823e6bbd8fc942711 (diff)
downloadcpython-cdc445122208cb90a59a468a7396b227e223c43a.zip
cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.gz
cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.bz2
Include <unistd.h> in Python.h. Fixes #500924.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 0f07e36..9724fb7 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -49,6 +49,9 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* CAUTION: Build setups should ensure that NDEBUG is defined on the
* compiler command line when building Python in release mode; else