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

@ -9,10 +9,6 @@
#include <ctype.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef RISCOS
#include "unixstuff.h"
#endif

View file

@ -4,7 +4,6 @@
#include <kernel/image.h>
#include <kernel/OS.h>
#include <stdlib.h>
#include <unistd.h>
#include "Python.h"
#include "importdl.h"

View file

@ -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

View file

@ -15,10 +15,6 @@
#include "macglue.h"
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

View file

@ -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

View file

@ -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: */

View file

@ -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

View file

@ -1,7 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include </usr/include/thread.h>
#undef _POSIX_THREADS