summaryrefslogtreecommitdiff
path: root/emulators/ia64sim/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-02-18 23:24:59 +0000
committerkristerw <kristerw@pkgsrc.org>2004-02-18 23:24:59 +0000
commitaf57c1d82289bedd455592f45263edb8805f78e2 (patch)
tree75099e040dc3eb88ac20175524fee7f75592b9a5 /emulators/ia64sim/patches
parent157a95f6f24c66d89a240988671d8a9930cf101d (diff)
downloadpkgsrc-af57c1d82289bedd455592f45263edb8805f78e2.tar.gz
Make this package compile when using gcc 3.3.
Diffstat (limited to 'emulators/ia64sim/patches')
-rw-r--r--emulators/ia64sim/patches/patch-ab24
1 files changed, 24 insertions, 0 deletions
diff --git a/emulators/ia64sim/patches/patch-ab b/emulators/ia64sim/patches/patch-ab
new file mode 100644
index 00000000000..668d9acc226
--- /dev/null
+++ b/emulators/ia64sim/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.3 2004/02/18 23:24:59 kristerw Exp $
+
+--- include/ia64.h.orig Thu Feb 19 00:15:01 2004
++++ include/ia64.h Thu Feb 19 00:16:20 2004
+@@ -35,7 +35,7 @@
+ 0<=lo,hi<=63 and lo<=hi */
+
+ #define BITS(x,lo,hi) ( \
+- (uint32)(x##.q >> lo) & \
++ (uint32)(x.q >> lo) & \
+ ( (1<<(hi-lo+1)) - 1 ) \
+ )
+
+@@ -69,8 +69,8 @@
+ uint8 b[8];
+ } qword;
+
+-#define HI(x) (x##.d[1])
+-#define LO(x) (x##.d[0])
++#define HI(x) (x.d[1])
++#define LO(x) (x.d[0])
+
+ typedef struct {
+ qword dat;