diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/python3/0016-undup-ffi-symbols.patch | |
Diffstat (limited to 'vcpkg/ports/python3/0016-undup-ffi-symbols.patch')
| -rw-r--r-- | vcpkg/ports/python3/0016-undup-ffi-symbols.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/python3/0016-undup-ffi-symbols.patch b/vcpkg/ports/python3/0016-undup-ffi-symbols.patch new file mode 100644 index 0000000..7faec9f --- /dev/null +++ b/vcpkg/ports/python3/0016-undup-ffi-symbols.patch @@ -0,0 +1,14 @@ +diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c +index 788bae6a9..3938f79db 100644 +--- a/Modules/_ctypes/malloc_closure.c ++++ b/Modules/_ctypes/malloc_closure.c +@@ -11,6 +11,9 @@ + #endif + #include "ctypes.h" + ++#undef Py_ffi_closure_alloc ++#undef Py_ffi_closure_free ++ + /* BLOCKSIZE can be adjusted. Larger blocksize will take a larger memory + overhead, but allocate less blocks from the system. It may be that some + systems have a limit of how many mmap'd blocks can be open. |