summaryrefslogtreecommitdiff
path: root/x11/XFree86-4-libraries
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-05-07 22:34:43 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-05-07 22:34:43 +0000
commitc5df92d1eeaf4bc90ec177e10b3968ed29c7d11b (patch)
tree599903e0e1352dde3b39940cbb1628553c0b8aaa /x11/XFree86-4-libraries
parentPut SONAME entries into shared libraries. (diff)
Add a patch to work around a gcc/gas problem on sparc64. No revision bump
necessary as this is a build fix. Submitted by: tmm
Notes
Notes: svn path=/head/; revision=80399
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r--x11/XFree86-4-libraries/files/patch-XRes.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-XRes.c b/x11/XFree86-4-libraries/files/patch-XRes.c
new file mode 100644
index 000000000000..bbb923724125
--- /dev/null
+++ b/x11/XFree86-4-libraries/files/patch-XRes.c
@@ -0,0 +1,16 @@
+--- lib/XRes/XRes.c.orig Wed Oct 16 02:37:26 2002
++++ lib/XRes/XRes.c Wed May 7 23:44:38 2003
+@@ -218,7 +218,13 @@
+ }
+
+ #ifdef LONG64
++#ifdef __sparc64__
++ /* The first assignment is to work around a bug in gcc/gas on sparc64. */
++ *bytes = rep.bytes_overflow;
++ *bytes = (*bytes * 4294967295) + rep.bytes;
++#else
+ *bytes = (rep.bytes_overflow * 4294967295) + rep.bytes;
++#endif
+ #else
+ *bytes = rep.bytes_overflow ? 0xffffffff : rep.bytes;
+ #endif