2013-09-26 17:14:40 +02:00

23 lines
908 B
Plaintext

$NetBSD: patch-au,v 1.1 2010/03/21 14:41:41 taca Exp $
--- storage/innodb_plugin/include/os0sync.h.orig 2010-02-04 11:40:00.000000000 +0000
+++ storage/innodb_plugin/include/os0sync.h
@@ -349,7 +349,7 @@ compare to, new_val is the value to swap
(atomic_cas_ulong(ptr, old_val, new_val) == old_val)
# define os_compare_and_swap_lint(ptr, old_val, new_val) \
- ((lint)atomic_cas_ulong((ulong_t*) ptr, old_val, new_val) == old_val)
+ ((lint)atomic_cas_ulong((unsigned long*) ptr, old_val, new_val) == old_val)
# ifdef HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS
# if SIZEOF_PTHREAD_T == 4
@@ -374,7 +374,7 @@ Returns the resulting value, ptr is poin
amount of increment. */
# define os_atomic_increment_lint(ptr, amount) \
- atomic_add_long_nv((ulong_t*) ptr, amount)
+ atomic_add_long_nv((unsigned long *) ptr, amount)
# define os_atomic_increment_ulint(ptr, amount) \
atomic_add_long_nv(ptr, amount)