mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Include <unistd.h> in Python.h. Fixes #500924.
This commit is contained in:
parent
edb60a7ba9
commit
cdc4451222
30 changed files with 4 additions and 109 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue