[PATCH] silc-toolkit 1.1.2 does not build on ia64
Jérémy Bobbio
lunar at debian.org
Mon Jul 9 21:57:27 CEST 2007
Hi!
silc-toolkit 1.1.2 fails to build on ia64 [1].
The attached patch fix this two issues:
- SILC_ATOMIC_ADD_INT_F was missing a backslash,
- the first argument of __sync_bool_compare_and_swap is a pointer.
Cheers,
--
Jérémy Bobbio .''`.
lunar at debian.org : :Ⓐ : # apt-get install anarchism
`. `'`
`-
-------------- next part --------------
Index: lib/silcutil/silcatomic.h
===================================================================
--- lib/silcutil/silcatomic.h (revision 139)
+++ lib/silcutil/silcatomic.h (working copy)
@@ -753,7 +753,7 @@
SILC_ATOMIC_ADD_INT_F(bits) \
{ \
SilcUInt##bits ret; \
- SilcInt32 val = value;
+ SilcInt32 val = value; \
/* GCC + IA64 (GCC builtin atomic operations) */ \
ret = __sync_fetch_and_add(&atomic->value, val); \
return ret + value; \
@@ -1230,7 +1230,7 @@
#elif defined(__GNUC__) && defined(SILC_IA64)
/* GCC + IA64 (GCC builtin atomic operations) */
- return __sync_bool_compare_and_swap((long)&atomic->value, (long)old_val,
+ return __sync_bool_compare_and_swap((long *)&atomic->value, (long)old_val,
(long)new_val);
#elif defined(__GNUC__) && defined(SILC_POWERPC)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.silcnet.org/pipermail/silc-devel/attachments/20070709/038d6729/attachment.bin
More information about the silc-devel
mailing list