Include <unistd.h> in Python.h. Fixes #500924.

This commit is contained in:
Martin v. Löwis 2002-01-12 11:05:12 +00:00
parent edb60a7ba9
commit cdc4451222
30 changed files with 4 additions and 109 deletions

View file

@ -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 *);