summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.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 /Modules/posixmodule.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 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1290977..31b0dde 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -46,11 +46,6 @@ corresponding Unix manual entries for more information on calls.";
#include <grp.h>
#endif
-/* pick up declaration of confstr on some systems? */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-
/* Various compilers have only certain posix functions */
/* XXX Gosh I wish these were all moved into pyconfig.h */
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
@@ -112,10 +107,6 @@ corresponding Unix manual entries for more information on calls.";
#ifndef _MSC_VER
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#if defined(sun) && !defined(__SVR4)
/* SunOS 4.1.4 doesn't have prototypes for these: */
extern int rename(const char *, const char *);