summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-02 15:51:19 (GMT)
committerGitHub <noreply@github.com>2023-09-02 15:51:19 (GMT)
commite7de0c5901b85a5241386a33f98c27a4e08d5384 (patch)
treeeb17a2a2dfa1c245729e3aa7b17ccc0da459162d /Include/pyport.h
parentbdc3c884cdc90102ad68b6b55dc9b988e729ae35 (diff)
downloadcpython-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 'Include/pyport.h')
-rw-r--r--Include/pyport.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index f2046de..c4168d1 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -184,25 +184,6 @@ typedef Py_ssize_t Py_ssize_clean_t;
# define Py_MEMCPY memcpy
#endif
-/********************************************
- * WRAPPER FOR <time.h> and/or <sys/time.h> *
- ********************************************/
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#include <time.h>
-
-/******************************
- * WRAPPER FOR <sys/select.h> *
- ******************************/
-
-/* NB caller must include <sys/types.h> */
-
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif /* !HAVE_SYS_SELECT_H */
-
/*******************************
* stat() and fstat() fiddling *
*******************************/