1
0
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:
Eric Anholt 2003-05-07 22:34:43 +00:00
parent c5dd5e6d13
commit c5df92d1ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80399

View 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