]>
Commit | Line | Data |
---|---|---|
ad224910 JB |
1 | --- ffi-1.15.5/ext/ffi_c/MethodHandle.c.orig 2023-02-18 19:46:18.462877574 +0100 |
2 | +++ ffi-1.15.5/ext/ffi_c/MethodHandle.c 2023-02-18 20:11:26.531881239 +0100 | |
3 | @@ -77,7 +77,7 @@ | |
4 | static bool prep_trampoline(void* ctx, void* code, Closure* closure, char* errmsg, size_t errmsgsize); | |
5 | static long trampoline_size(void); | |
6 | ||
7 | -#if defined(__x86_64__) && (defined(__linux__) || defined(__APPLE__)) | |
8 | +#if defined(__x86_64__) && !defined(__ILP32__) && (defined(__linux__) || defined(__APPLE__)) | |
9 | # define CUSTOM_TRAMPOLINE 1 | |
10 | #endif | |
11 | ||
12 | --- ffi-1.15.5/lib/ffi/platform.rb.orig 2023-02-18 19:46:19.052881095 +0100 | |
13 | +++ ffi-1.15.5/lib/ffi/platform.rb 2023-02-18 20:18:51.244538146 +0100 | |
14 | @@ -104,6 +104,7 @@ module FFI | |
15 | ||
16 | # Add the version for known ABI breaks | |
17 | name_version = "12" if IS_FREEBSD && OSVERSION >= 12 # 64-bit inodes | |
18 | + name_version = "-gnux32" if RbConfig::CONFIG['host_os'] == "linux-gnux32" | |
19 | ||
20 | NAME = "#{ARCH}-#{OS}#{name_version}" | |
21 | CONF_DIR = File.join(RbConfig::CONFIG["vendorarchdir"], 'ffi', 'platform', NAME) | |
22 | --- ffi-1.15.5/lib/ffi/platform/x86_64-linux-gnux32/types.conf.orig 1970-01-01 01:00:00.000000000 +0100 | |
23 | +++ ffi-1.15.5/lib/ffi/platform/x86_64-linux-gnux32/types.conf 2023-02-18 21:04:54.427719598 +0100 | |
24 | @@ -0,0 +1,103 @@ | |
25 | +rbx.platform.typedef.*__caddr_t = char | |
26 | +rbx.platform.typedef.*__qaddr_t = long_long | |
27 | +rbx.platform.typedef.__blkcnt64_t = long_long | |
28 | +rbx.platform.typedef.__blkcnt_t = long_long | |
29 | +rbx.platform.typedef.__blksize_t = long_long | |
30 | +rbx.platform.typedef.__clock_t = long_long | |
31 | +rbx.platform.typedef.__clockid_t = int | |
32 | +rbx.platform.typedef.__daddr_t = int | |
33 | +rbx.platform.typedef.__dev_t = ulong_long | |
34 | +rbx.platform.typedef.__fd_mask = long | |
35 | +rbx.platform.typedef.__fsblkcnt64_t = ulong_long | |
36 | +rbx.platform.typedef.__fsblkcnt_t = ulong_long | |
37 | +rbx.platform.typedef.__fsfilcnt64_t = ulong_long | |
38 | +rbx.platform.typedef.__fsfilcnt_t = ulong_long | |
39 | +rbx.platform.typedef.__gid_t = uint | |
40 | +rbx.platform.typedef.__id_t = uint | |
41 | +rbx.platform.typedef.__ino64_t = ulong_long | |
42 | +rbx.platform.typedef.__ino_t = ulong_long | |
43 | +rbx.platform.typedef.__int16_t = short | |
44 | +rbx.platform.typedef.__int32_t = int | |
45 | +rbx.platform.typedef.__int64_t = long_long | |
46 | +rbx.platform.typedef.__int8_t = char | |
47 | +rbx.platform.typedef.__intptr_t = int | |
48 | +rbx.platform.typedef.__key_t = int | |
49 | +rbx.platform.typedef.__loff_t = long_long | |
50 | +rbx.platform.typedef.__mode_t = uint | |
51 | +rbx.platform.typedef.__nlink_t = uint | |
52 | +rbx.platform.typedef.__off64_t = long_long | |
53 | +rbx.platform.typedef.__off_t = long_long | |
54 | +rbx.platform.typedef.__pid_t = int | |
55 | +rbx.platform.typedef.__priority_which_t = int | |
56 | +rbx.platform.typedef.__quad_t = long_long | |
57 | +rbx.platform.typedef.__rlim64_t = ulong_long | |
58 | +rbx.platform.typedef.__rlim_t = ulong_long | |
59 | +rbx.platform.typedef.__rlimit_resource_t = int | |
60 | +rbx.platform.typedef.__rusage_who_t = int | |
61 | +rbx.platform.typedef.__sig_atomic_t = int | |
62 | +rbx.platform.typedef.__socklen_t = uint | |
63 | +rbx.platform.typedef.__ssize_t = int | |
64 | +rbx.platform.typedef.__suseconds_t = long_long | |
65 | +rbx.platform.typedef.__swblk_t = long_long | |
66 | +rbx.platform.typedef.__time_t = long_long | |
67 | +rbx.platform.typedef.__timer_t = pointer | |
68 | +rbx.platform.typedef.__u_char = uchar | |
69 | +rbx.platform.typedef.__u_int = uint | |
70 | +rbx.platform.typedef.__u_long = ulong | |
71 | +rbx.platform.typedef.__u_quad_t = ulong_long | |
72 | +rbx.platform.typedef.__u_short = ushort | |
73 | +rbx.platform.typedef.__uid_t = uint | |
74 | +rbx.platform.typedef.__uint16_t = ushort | |
75 | +rbx.platform.typedef.__uint32_t = uint | |
76 | +rbx.platform.typedef.__uint64_t = ulong_long | |
77 | +rbx.platform.typedef.__uint8_t = uchar | |
78 | +rbx.platform.typedef.__useconds_t = uint | |
79 | +rbx.platform.typedef.blkcnt_t = long_long | |
80 | +rbx.platform.typedef.blksize_t = long_long | |
81 | +rbx.platform.typedef.clockid_t = int | |
82 | +rbx.platform.typedef.daddr_t = int | |
83 | +rbx.platform.typedef.dev_t = ulong_long | |
84 | +rbx.platform.typedef.fd_mask = long | |
85 | +rbx.platform.typedef.fsblkcnt_t = ulong_long | |
86 | +rbx.platform.typedef.fsfilcnt_t = ulong_long | |
87 | +rbx.platform.typedef.gid_t = uint | |
88 | +rbx.platform.typedef.id_t = uint | |
89 | +rbx.platform.typedef.in_addr_t = uint | |
90 | +rbx.platform.typedef.in_port_t = ushort | |
91 | +rbx.platform.typedef.ino_t = ulong_long | |
92 | +rbx.platform.typedef.int16_t = short | |
93 | +rbx.platform.typedef.int32_t = int | |
94 | +rbx.platform.typedef.int64_t = long_long | |
95 | +rbx.platform.typedef.int8_t = char | |
96 | +rbx.platform.typedef.key_t = int | |
97 | +rbx.platform.typedef.loff_t = long_long | |
98 | +rbx.platform.typedef.mode_t = uint | |
99 | +rbx.platform.typedef.nlink_t = uint | |
100 | +rbx.platform.typedef.off_t = long_long | |
101 | +rbx.platform.typedef.pid_t = int | |
102 | +rbx.platform.typedef.pthread_key_t = uint | |
103 | +rbx.platform.typedef.pthread_once_t = int | |
104 | +rbx.platform.typedef.pthread_t = ulong | |
105 | +rbx.platform.typedef.quad_t = long_long | |
106 | +rbx.platform.typedef.register_t = long | |
107 | +rbx.platform.typedef.rlim_t = ulong_long | |
108 | +rbx.platform.typedef.sa_family_t = ushort | |
109 | +rbx.platform.typedef.size_t = uint | |
110 | +rbx.platform.typedef.socklen_t = uint | |
111 | +rbx.platform.typedef.ssize_t = int | |
112 | +rbx.platform.typedef.suseconds_t = long_long | |
113 | +rbx.platform.typedef.time_t = long_long | |
114 | +rbx.platform.typedef.timer_t = pointer | |
115 | +rbx.platform.typedef.u_char = uchar | |
116 | +rbx.platform.typedef.u_int = uint | |
117 | +rbx.platform.typedef.u_int16_t = ushort | |
118 | +rbx.platform.typedef.u_int32_t = uint | |
119 | +rbx.platform.typedef.u_int64_t = ulong_long | |
120 | +rbx.platform.typedef.u_int8_t = uchar | |
121 | +rbx.platform.typedef.u_long = ulong | |
122 | +rbx.platform.typedef.u_quad_t = ulong_long | |
123 | +rbx.platform.typedef.u_short = ushort | |
124 | +rbx.platform.typedef.uid_t = uint | |
125 | +rbx.platform.typedef.uint = uint | |
126 | +rbx.platform.typedef.ulong = ulong | |
127 | +rbx.platform.typedef.ushort = ushort |