diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-12 11:05:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-12 11:05:12 (GMT) |
commit | cdc445122208cb90a59a468a7396b227e223c43a (patch) | |
tree | ad9ca70705ab2c5a952aeeae91f0160394f98604 /Modules | |
parent | edb60a7ba9daa607a8021f2823e6bbd8fc942711 (diff) | |
download | cpython-cdc445122208cb90a59a468a7396b227e223c43a.zip cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.gz cpython-cdc445122208cb90a59a468a7396b227e223c43a.tar.bz2 |
Include <unistd.h> in Python.h. Fixes #500924.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hotshot.c | 4 | ||||
-rw-r--r-- | Modules/bsddbmodule.c | 4 | ||||
-rw-r--r-- | Modules/fcntlmodule.c | 4 | ||||
-rw-r--r-- | Modules/getpath.c | 4 | ||||
-rw-r--r-- | Modules/linuxaudiodev.c | 4 | ||||
-rw-r--r-- | Modules/main.c | 4 | ||||
-rw-r--r-- | Modules/mmapmodule.c | 1 | ||||
-rw-r--r-- | Modules/posixmodule.c | 9 | ||||
-rw-r--r-- | Modules/readline.c | 4 | ||||
-rw-r--r-- | Modules/resource.c | 1 | ||||
-rw-r--r-- | Modules/rgbimgmodule.c | 3 | ||||
-rw-r--r-- | Modules/selectmodule.c | 3 | ||||
-rw-r--r-- | Modules/sgimodule.c | 1 | ||||
-rw-r--r-- | Modules/signalmodule.c | 4 | ||||
-rw-r--r-- | Modules/socketmodule.c | 4 | ||||
-rw-r--r-- | Modules/sunaudiodev.c | 4 | ||||
-rw-r--r-- | Modules/termios.c | 4 | ||||
-rw-r--r-- | Modules/timemodule.c | 4 |
18 files changed, 0 insertions, 66 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index 03eafb1..ebaf37c 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -8,10 +8,6 @@ #include "frameobject.h" #include "structmember.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - /* * Which timer to use should be made more configurable, but that should not * be difficult. This will do for now. diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index 05d2bf1..d51f3b4 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -18,10 +18,6 @@ #include "pythread.h" #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 65c9d2b..9f84a2c 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -3,10 +3,6 @@ #include "Python.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef HAVE_SYS_FILE_H #include <sys/file.h> #endif diff --git a/Modules/getpath.c b/Modules/getpath.c index 2c0b6f2..3ecdb9d 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -6,10 +6,6 @@ #include <sys/types.h> #include <string.h> -#if HAVE_UNISTD_H -#include <unistd.h> -#endif /* HAVE_UNISTD_H */ - #ifdef WITH_NEXT_FRAMEWORK #include <mach-o/dyld.h> #endif diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c index dd462ef..fa2e441 100644 --- a/Modules/linuxaudiodev.c +++ b/Modules/linuxaudiodev.c @@ -16,10 +16,6 @@ #include "Python.h" #include "structmember.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef HAVE_FCNTL_H #include <fcntl.h> #else diff --git a/Modules/main.c b/Modules/main.c index 5f71ee2..41c229f 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -4,10 +4,6 @@ #include "osdefs.h" #include "compile.h" /* For CO_FUTURE_DIVISION */ -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef MS_WINDOWS #include <fcntl.h> #endif diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 933e972..6e03b4b 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -36,7 +36,6 @@ my_getpagesize(void) #endif #ifdef UNIX -#include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> 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 *); diff --git a/Modules/readline.c b/Modules/readline.c index fe653b8..fa4fc06 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -12,10 +12,6 @@ #include <signal.h> #include <errno.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> /* For isatty() */ -#endif - /* GNU readline definitions */ #undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */ #include <readline/readline.h> diff --git a/Modules/resource.c b/Modules/resource.c index 43ed1de..45474be 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -2,7 +2,6 @@ #include "Python.h" #include <sys/resource.h> #include <sys/time.h> -#include <unistd.h> #include <string.h> #include <errno.h> diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index c8c42c2..304dbd6 100644 --- a/Modules/rgbimgmodule.c +++ b/Modules/rgbimgmodule.c @@ -28,9 +28,6 @@ typedef unsigned long Py_UInt32; #endif #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif #include <string.h> /* diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index e5aa6eb..ceaf3fa 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -18,9 +18,6 @@ #define FD_SETSIZE 512 #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif #if defined(HAVE_POLL_H) #include <poll.h> #elif defined(HAVE_SYS_POLL_H) diff --git a/Modules/sgimodule.c b/Modules/sgimodule.c index b19efe6..7ec43d3 100644 --- a/Modules/sgimodule.c +++ b/Modules/sgimodule.c @@ -5,7 +5,6 @@ #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> #include <fcntl.h> static PyObject * diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 850221e..1053cf1 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -10,10 +10,6 @@ #include <process.h> #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #include <signal.h> #ifndef SIG_ERR diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 124353e..25912a4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -115,10 +115,6 @@ Socket methods: #include "pythread.h" #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #if defined(PYCC_VACPP) #include <types.h> #include <io.h> diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c index e9ffd1f..78be842 100644 --- a/Modules/sunaudiodev.c +++ b/Modules/sunaudiodev.c @@ -8,10 +8,6 @@ #define SOLARIS #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif diff --git a/Modules/termios.c b/Modules/termios.c index c77dff3..3362e81 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -12,10 +12,6 @@ #endif #include <sys/ioctl.h> -#ifdef __BEOS__ -#include <unistd.h> -#endif - /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (appearantly used internally by some things * defined as macros; these are not used here directly). diff --git a/Modules/timemodule.c b/Modules/timemodule.c index bcc53e0..a5d81fe 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -24,10 +24,6 @@ #include <io.h> #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef HAVE_FTIME #include <sys/timeb.h> #if !defined(MS_WINDOWS) && !defined(PYOS_OS2) |