summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch20
1 files changed, 14 insertions, 6 deletions
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch
index cc4ee7eefb..aef521bc5d 100644
--- a/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch
+++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch
@@ -3,7 +3,8 @@ From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 2 Mar 2023 18:47:40 -0800 3Date: Thu, 2 Mar 2023 18:47:40 -0800
4Subject: [PATCH] Define CARD32 as uint as it is 32-bit 4Subject: [PATCH] Define CARD32 as uint as it is 32-bit
5 5
6long can be 64bit on LP64 systems 6long can be 64bit on LP64 systems and none of systems we support need int < 32-bits
7therefore use NUM32 to be int always if the system is linux
7 8
8Fixes build with clang-16 9Fixes build with clang-16
9thunk.c:147:3: error: incompatible function pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-function-pointer-types] 10thunk.c:147:3: error: incompatible function pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-function-pointer-types]
@@ -16,8 +17,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 x86emu/include/xf86int10.h | 2 +- 17 x86emu/include/xf86int10.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
18 19
19diff --git a/x86emu/include/xf86int10.h b/x86emu/include/xf86int10.h
20index 9c131dd..acd5114 100644
21--- a/x86emu/include/xf86int10.h 20--- a/x86emu/include/xf86int10.h
22+++ b/x86emu/include/xf86int10.h 21+++ b/x86emu/include/xf86int10.h
23@@ -18,7 +18,7 @@ 22@@ -18,7 +18,7 @@
@@ -29,6 +28,15 @@ index 9c131dd..acd5114 100644
29 #define pointer void * 28 #define pointer void *
30 #define IOADDRESS void * 29 #define IOADDRESS void *
31 #define Bool int 30 #define Bool int
32-- 31--- a/x86emu/include/types.h
332.39.2 32+++ b/x86emu/include/types.h
34 33@@ -77,7 +77,8 @@
34 defined(__s390x__) || \
35 (defined(__hppa__) && defined(__LP64)) || \
36 defined(__amd64__) || defined(amd64) || \
37- (defined(__sgi) && (_MIPS_SZLONG == 64))
38+ (defined(__sgi) && (_MIPS_SZLONG == 64)) || \
39+ defined(__linux__)
40 #define NUM32 int
41 #else
42 #define NUM32 long