aboutsummaryrefslogtreecommitdiffstats
path: root/devel/glib20
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-10-17 09:45:41 +0800
committermarcus <marcus@FreeBSD.org>2006-10-17 09:45:41 +0800
commit9bd0e30d3452a97df518bd2ab76e984c39a80485 (patch)
tree6447453d7ca3d05cf25feaed963b1f9b210373ba /devel/glib20
parenta53258d251394baad6c617955cbef1b43580113e (diff)
downloadfreebsd-ports-gnome-9bd0e30d3452a97df518bd2ab76e984c39a80485.tar.gz
freebsd-ports-gnome-9bd0e30d3452a97df518bd2ab76e984c39a80485.tar.zst
freebsd-ports-gnome-9bd0e30d3452a97df518bd2ab76e984c39a80485.zip
Restore a patch to fix the build on ia64 that was removed during the
GNOME 2.16 import. Approved by: portmgr (implicit)
Diffstat (limited to 'devel/glib20')
-rw-r--r--devel/glib20/files/patch-glib_gatomic.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/devel/glib20/files/patch-glib_gatomic.c b/devel/glib20/files/patch-glib_gatomic.c
new file mode 100644
index 000000000000..93b29baddabe
--- /dev/null
+++ b/devel/glib20/files/patch-glib_gatomic.c
@@ -0,0 +1,37 @@
+--- glib/gatomic.c.orig Thu Jul 6 11:21:02 2006
++++ glib/gatomic.c Thu Jul 6 11:18:48 2006
+@@ -414,14 +414,14 @@
+ g_atomic_int_exchange_and_add (volatile gint *atomic,
+ gint val)
+ {
+- return __sync_fetch_and_add (atomic, val);
++ return __sync_fetch_and_add_si (atomic, val);
+ }
+
+ void
+ g_atomic_int_add (volatile gint *atomic,
+ gint val)
+ {
+- __sync_fetch_and_add (atomic, val);
++ __sync_fetch_and_add_si (atomic, val);
+ }
+
+ gboolean
+@@ -429,7 +429,7 @@
+ gint oldval,
+ gint newval)
+ {
+- return __sync_bool_compare_and_swap (atomic, oldval, newval);
++ return __sync_bool_compare_and_swap_si (atomic, oldval, newval);
+ }
+
+ gboolean
+@@ -437,7 +437,7 @@
+ gpointer oldval,
+ gpointer newval)
+ {
+- return __sync_bool_compare_and_swap ((long *)atomic,
++ return __sync_bool_compare_and_swap_di ((long *)atomic,
+ (long)oldval, (long)newval);
+ }
+