mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
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
This commit is contained in:
parent
c5dd5e6d13
commit
c5df92d1ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80399
16
x11/XFree86-4-libraries/files/patch-XRes.c
Normal file
16
x11/XFree86-4-libraries/files/patch-XRes.c
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user