mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-108765: Python.h no longer includes <unistd.h> (#108783)
This commit is contained in:
parent
4f9b706c6f
commit
594b00057e
16 changed files with 55 additions and 42 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue