diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-02 15:51:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 15:51:19 (GMT) |
commit | e7de0c5901b85a5241386a33f98c27a4e08d5384 (patch) | |
tree | eb17a2a2dfa1c245729e3aa7b17ccc0da459162d /Modules/_multiprocessing | |
parent | bdc3c884cdc90102ad68b6b55dc9b988e729ae35 (diff) | |
download | cpython-e7de0c5901b85a5241386a33f98c27a4e08d5384.zip cpython-e7de0c5901b85a5241386a33f98c27a4e08d5384.tar.gz cpython-e7de0c5901b85a5241386a33f98c27a4e08d5384.tar.bz2 |
gh-108765: Python.h no longer includes <sys/time.h> (#108775)
Python.h no longer includes <time.h>, <sys/select.h> and <sys/time.h>
standard header files.
* Add <time.h> include to xxsubtype.c.
* Add <sys/time.h> include to posixmodule.c and semaphore.c.
* readline.c includes <sys/select.h> instead of <sys/time.h>.
* resource.c no longer includes <time.h> and <sys/time.h>.
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r-- | Modules/_multiprocessing/semaphore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index d22b8d1..f8f2afd 100644 --- a/Modules/_multiprocessing/semaphore.c +++ b/Modules/_multiprocessing/semaphore.c @@ -9,6 +9,10 @@ #include "multiprocessing.h" +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> // gettimeofday() +#endif + #ifdef HAVE_MP_SEMAPHORE enum { RECURSIVE_MUTEX, SEMAPHORE }; |