mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Restore a patch to fix the build on ia64 that was removed during the
GNOME 2.16 import. Approved by: portmgr (implicit)
This commit is contained in:
parent
334584d543
commit
cbb8920264
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175364
1 changed files with 37 additions and 0 deletions
37
devel/glib20/files/patch-glib_gatomic.c
Normal file
37
devel/glib20/files/patch-glib_gatomic.c
Normal file
|
@ -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);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue