[PATCH] silc-toolkit 1.1.2 does not build on ia64
Jérémy Bobbio <[email protected]> Mon, 9 Jul 2007 21:57:27 +0200
| Newsgroups | gmane.network.silc.devel |
|---|---|
| Message-ID | <[email protected]> |
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 .''`. [email protected] : :Ⓐ : # apt-get install anarchism `. `'` `- _______________________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-announce Archive: https://lists.silcnet.org/pipermail/silc-announce FAQ: http://silcnet.org/support/faq/
silc-toolkit_1.1.2_fix-ia64.diff
(text/plain, 852 B)
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)
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGkpMh2PUjs9fQ72URAiVaAJ46oADD9w7LbAtGROZWEfc9zNZLUgCfT1NR FXtKFIUFnQSbJocvz9ESJJE= =VeTl -----END PGP SIGNATURE-----