]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-121731: Fix mimalloc compile error on GNU/Hurd (GH-121732) (#121773)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Jul 2024 17:14:30 +0000 (19:14 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2024 17:14:30 +0000 (17:14 +0000)
(cherry picked from commit d005f2c1861dbf0ab3d9f80b54d05d0c0b522c3c)

Co-authored-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
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>