summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
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 /Misc/NEWS.d
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 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/C API/2023-09-01-18-42-31.gh-issue-108765.IyYNDu.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-09-01-18-42-31.gh-issue-108765.IyYNDu.rst b/Misc/NEWS.d/next/C API/2023-09-01-18-42-31.gh-issue-108765.IyYNDu.rst
new file mode 100644
index 0000000..7b33481
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2023-09-01-18-42-31.gh-issue-108765.IyYNDu.rst
@@ -0,0 +1,6 @@
+``Python.h`` no longer includes these standard header files: ``<time.h>``,
+``<sys/select.h>`` and ``<sys/time.h>``. If needed, they should now be included
+explicitly. For example, ``<time.h>`` provides the ``clock()`` and ``gmtime()``
+functions, ``<sys/select.h>`` provides the ``select()`` function, and
+``<sys/time.h>`` provides the ``futimes()``, ``gettimeofday()`` and
+``setitimer()`` functions. Patch by Victor Stinner.