gh-108765: Python.h no longer includes <unistd.h> (#108783)

This commit is contained in:
Victor Stinner 2023-09-02 16:50:18 +02:00 committed by GitHub
parent 4f9b706c6f
commit 594b00057e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 55 additions and 42 deletions

View file

@ -11,9 +11,9 @@
* Return fd2 if all went well; return BADEXIT otherwise.
*/
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h> // errno
#include <fcntl.h> // fcntl()
#include <unistd.h> // close()
#define BADEXIT -1

View file

@ -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