]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121731: Fix mimalloc compile error on GNU/Hurd (#121732)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jul 2024 16:50:25 +0000 (18:50 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2024 16:50:25 +0000 (12:50 -0400)
Misc/NEWS.d/next/Build/2024-07-14-01-29-47.gh-issue-121731.RMPGP3.rst [new file with mode: 0644]
Objects/mimalloc/prim/unix/prim.c

diff --git a/Misc/NEWS.d/next/Build/2024-07-14-01-29-47.gh-issue-121731.RMPGP3.rst b/Misc/NEWS.d/next/Build/2024-07-14-01-29-47.gh-issue-121731.RMPGP3.rst
new file mode 100644 (file)
index 0000000..36e0f86
--- /dev/null
@@ -0,0 +1 @@
+Fix mimalloc compile error on GNU/Hurd
index c6ea05bbe7a2ac8678cdf2f93b5589945c866745..c4816af1a0d6e50b8518ee10a205c92472fe1fc4 100644 (file)
@@ -27,6 +27,7 @@ terms of the MIT license. A copy of the license can be found in the file
 
 #include <sys/mman.h>  // mmap
 #include <unistd.h>    // sysconf
+#include <fcntl.h>     // open, close, read, access
 
 #if defined(__linux__)
   #include <features.h>