summaryrefslogtreecommitdiffstats
path: root/Python/perf_trampoline.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-02 14:50:18 (GMT)
committerGitHub <noreply@github.com>2023-09-02 14:50:18 (GMT)
commit594b00057e667e0d8d4e41748be056cdd829e919 (patch)
treeb970b7d385d30e9bb423a30bc3029cc94fe4ca4b /Python/perf_trampoline.c
parent4f9b706c6f5d4422a398146bfd011daedaef1851 (diff)
downloadcpython-594b00057e667e0d8d4e41748be056cdd829e919.zip
cpython-594b00057e667e0d8d4e41748be056cdd829e919.tar.gz
cpython-594b00057e667e0d8d4e41748be056cdd829e919.tar.bz2
gh-108765: Python.h no longer includes <unistd.h> (#108783)
Diffstat (limited to 'Python/perf_trampoline.c')
-rw-r--r--Python/perf_trampoline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/perf_trampoline.c b/Python/perf_trampoline.c
index b8885a3..10675bf 100644
--- a/Python/perf_trampoline.c
+++ b/Python/perf_trampoline.c
@@ -140,9 +140,9 @@ any DWARF information available for them).
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/mman.h>
+#include <sys/mman.h> // mmap()
#include <sys/types.h>
-#include <unistd.h>
+#include <unistd.h> // sysconf()
#if defined(__arm__) || defined(__arm64__) || defined(__aarch64__)
#define PY_HAVE_INVALIDATE_ICACHE