diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2006-08-18 22:18:31 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2006-08-18 22:18:31 +0000 |
commit | b48c59eaae762523e439d3c9487ca71b272ef51b (patch) | |
tree | d75a93fcf32baa0bdc4e39ba5886236ec7448bbb /dev-libs/glib/files | |
parent | Cleaning up (diff) | |
download | historical-b48c59eaae762523e439d3c9487ca71b272ef51b.tar.gz historical-b48c59eaae762523e439d3c9487ca71b272ef51b.tar.bz2 historical-b48c59eaae762523e439d3c9487ca71b272ef51b.zip |
Fix compile bug on IA64 with GCC < 4.1.
Package-Manager: portage-2.1.1_pre4-r4
Diffstat (limited to 'dev-libs/glib/files')
-rw-r--r-- | dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch b/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch new file mode 100644 index 000000000000..0859e3310a17 --- /dev/null +++ b/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch @@ -0,0 +1,39 @@ +From Debian, this one is needed for gcc < 4.1... + +--- glib-2.10.0/glib/gatomic.c 2006-02-24 14:02:51.000000000 +0000 ++++ glib-2.10.0/glib/gatomic.c 2006-03-06 18:12:06.000000000 +0000 +@@ -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); + } + |