mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
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>.
This commit is contained in:
parent
bdc3c884cd
commit
e7de0c5901
11 changed files with 43 additions and 37 deletions
|
@ -2,10 +2,6 @@
|
|||
#include <errno.h> // errno
|
||||
#include <string.h>
|
||||
#include <sys/resource.h> // getrusage()
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
#include <unistd.h> // getpagesize()
|
||||
|
||||
/* On some systems, these aren't in any header file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue