mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -16,10 +16,10 @@
|
|||
#include "pycore_signal.h" // _Py_RestoreSignals()
|
||||
|
||||
#ifndef MS_WINDOWS
|
||||
# include "posixmodule.h"
|
||||
# include "posixmodule.h" // _PyLong_FromUid()
|
||||
#endif
|
||||
#ifdef MS_WINDOWS
|
||||
# include "socketmodule.h" /* needed for SOCKET_T */
|
||||
# include "socketmodule.h" // SOCKET_T
|
||||
#endif
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
|
@ -29,16 +29,16 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
# include <signal.h>
|
||||
# include <signal.h> // sigaction()
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SYSCALL_H
|
||||
# include <sys/syscall.h>
|
||||
# include <sys/syscall.h> // __NR_pidfd_send_signal
|
||||
#endif
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
# include <sys/time.h> // setitimer()
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue