File: 0001-Fix-tests-check_sizes.c-on-x32.patch

package info (click to toggle)
libkate 0.4.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 5,620 kB
  • sloc: ansic: 10,964; sh: 10,344; yacc: 2,358; python: 767; lex: 363; makefile: 239
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Daniel Schepler <schepler@debian.org>
Date: Sat, 9 Mar 2013 16:33:14 -0800
Subject: Fix tests/check_sizes.c on x32

Bug-Debian: https://bugs.debian.org/702681
---
 tests/check_sizes.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/check_sizes.c b/tests/check_sizes.c
index 0b9809f..8aa36e5 100644
--- a/tests/check_sizes.c
+++ b/tests/check_sizes.c
@@ -30,7 +30,11 @@ static void ksz_print(const char *type,size_t sz)
   } while(0)
 
 #ifdef __x86_64__
+#ifdef __ILP32__
+#define KSZ(type,sz32,sz64) KSZA(type,sz32)
+#else
 #define KSZ(type,sz32,sz64) KSZA(type,sz64)
+#endif
 #elif defined __i386__
 #define KSZ(type,sz32,sz64) KSZA(type,sz32)
 #else