summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-0.9.1/61_safe_64bit_int.patch
blob: 9b1ace81a58429cc50486c5c9867810f18d84be8 (plain)
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
26
27
#DPATCHLEVEL=0
---
# dyngen-exec.h |    4 ++--
# 1 file changed, 2 insertions(+), 2 deletions(-)
#
Index: dyngen-exec.h
===================================================================
--- dyngen-exec.h.orig	2007-12-31 13:06:21.000000000 +0000
+++ dyngen-exec.h	2007-12-31 13:08:54.000000000 +0000
@@ -38,7 +38,7 @@
 // Linux/Sparc64 defines uint64_t
 #if !(defined (__sparc_v9__) && defined(__linux__))
 /* XXX may be done for all 64 bits targets ? */
-#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) 
+#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(__sparc__)
 typedef unsigned long uint64_t;
 #else
 typedef unsigned long long uint64_t;
@@ -55,7 +55,7 @@
 typedef signed int int32_t;
 // Linux/Sparc64 defines int64_t
 #if !(defined (__sparc_v9__) && defined(__linux__))
-#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__)
+#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(__sparc__)
 typedef signed long int64_t;
 #else
 typedef signed long long int64_t;