summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
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 /Python/thread.c
parentedb60a7ba9daa607a8021f2823e6bbd8fc942711 (diff)
downloadcpython-cdc445122208cb90a59a468a7396b227e223c43a.zip
cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.gz
cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.bz2
Include <unistd.h> in Python.h. Fixes #500924.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/thread.c b/Python/thread.c
index df42f31..f9a4de9 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -5,7 +5,7 @@
which is included by this file dependent on config settings.
Stuff shared by all thread_*.h files is collected here. */
-#include "pyconfig.h"
+#include "Python.h"
/* pyconfig.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT /* declarations for DLL import/export */
@@ -24,10 +24,6 @@ extern char *getenv(const char *);
#endif
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef __DGUX
#define _USING_POSIX4A_DRAFT6
#endif