1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Only use FFI_UNIX64 on x86-64
Otherwise you will see errors like:
.
/tmp/autopkgtest-lxc.2eljqrzj/downtmp/autopkgtest_tmp/usr/share/common-lisp/source/cl-cffi/libffi/libffi-types__grovel.c:82:41: error: ‘FFI_UNIX64’ undeclared (first use in this function); did you mean ‘FFI_WIN64’?
82 | fprintf(output, "%"PRIiMAX, (intmax_t)FFI_UNIX64);
| ^~~~~~~~~~
| FFI_WIN64
Author: Peter Van Eynde <pvaneynd@debian.org>
Bug: https://github.com/cffi/cffi/issues/417
Forwarded: https://github.com/cffi/cffi/issues/417
Last-Update: 2025-11-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- cffi.orig/libffi/libffi-types.lisp
+++ cffi/libffi/libffi-types.lisp
@@ -73,6 +73,7 @@
((:default-abi "FFI_DEFAULT_ABI"))
#-x86-64
((:sysv "FFI_SYSV"))
+ #+x86-64
((:unix64 "FFI_UNIX64")))
(ctype ffi-abi "ffi_abi")
|