Mercurial > cpython-lru_cache-weakref
comparison Python/thread.c @ 21713:e223397b26fa 2.2
Include <unistd.h> in Python.h. Fixes #500924.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 12 Jan 2002 11:13:24 +0000 |
| parents | ebfd87e87884 |
| children | b898c0feb754 |
comparison
equal
deleted
inserted
replaced
| 21703:4027361e7956 | 21713:e223397b26fa |
|---|---|
| 3 This is intended to be usable independently from Python. | 3 This is intended to be usable independently from Python. |
| 4 The implementation for system foobar is in a file thread_foobar.h | 4 The implementation for system foobar is in a file thread_foobar.h |
| 5 which is included by this file dependent on config settings. | 5 which is included by this file dependent on config settings. |
| 6 Stuff shared by all thread_*.h files is collected here. */ | 6 Stuff shared by all thread_*.h files is collected here. */ |
| 7 | 7 |
| 8 #include "pyconfig.h" | 8 #include "Python.h" |
| 9 | 9 |
| 10 /* pyconfig.h may or may not define DL_IMPORT */ | 10 /* pyconfig.h may or may not define DL_IMPORT */ |
| 11 #ifndef DL_IMPORT /* declarations for DLL import/export */ | 11 #ifndef DL_IMPORT /* declarations for DLL import/export */ |
| 12 #define DL_IMPORT(RTYPE) RTYPE | 12 #define DL_IMPORT(RTYPE) RTYPE |
| 13 #endif | 13 #endif |
| 20 #include <stdlib.h> | 20 #include <stdlib.h> |
| 21 #else | 21 #else |
| 22 #ifdef Py_DEBUG | 22 #ifdef Py_DEBUG |
| 23 extern char *getenv(const char *); | 23 extern char *getenv(const char *); |
| 24 #endif | 24 #endif |
| 25 #endif | |
| 26 | |
| 27 #ifdef HAVE_UNISTD_H | |
| 28 #include <unistd.h> | |
| 29 #endif | 25 #endif |
| 30 | 26 |
| 31 #ifdef __DGUX | 27 #ifdef __DGUX |
| 32 #define _USING_POSIX4A_DRAFT6 | 28 #define _USING_POSIX4A_DRAFT6 |
| 33 #endif | 29 #endif |
