mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +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
|
@ -9,10 +9,6 @@
|
|||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef RISCOS
|
||||
#include "unixstuff.h"
|
||||
#endif
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <kernel/image.h>
|
||||
#include <kernel/OS.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "Python.h"
|
||||
#include "importdl.h"
|
||||
|
|
|
@ -9,15 +9,6 @@ extern void PyWinFreeze_ExeTerm(void);
|
|||
extern int PyInitFrozenExtensions(void);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h> /* For isatty() */
|
||||
#endif
|
||||
|
||||
/* For isatty()'s proto. - [cjh] */
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* Main program */
|
||||
|
||||
int
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
#include "macglue.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
#include "eval.h"
|
||||
#include "marshal.h"
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
|
|
@ -20,10 +20,6 @@ Data members:
|
|||
|
||||
#include "osdefs.h"
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef MS_COREDLL
|
||||
extern void *PyWin_DLLhModule;
|
||||
/* A string loaded from the DLL at startup: */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include </usr/include/thread.h>
|
||||
#undef _POSIX_THREADS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue