projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9076e79
)
So our reward for including <sys/atomic_op.h> seems to be a bunch of
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 04:57:57 +0000
(
04:57
+0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 04:57:57 +0000
(
04:57
+0000)
nattering about casting away volatile. Losers.
src/include/storage/s_lock.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/storage/s_lock.h
b/src/include/storage/s_lock.h
index 56016fc9ce94f973d3b3a3fa8d96c02e7bd8948a..4dcdedab3988f3c3d1aa7ce890e608f4c50670d8 100644
(file)
--- a/
src/include/storage/s_lock.h
+++ b/
src/include/storage/s_lock.h
@@
-754,8
+754,8
@@
typedef abilock_t slock_t;
typedef unsigned int slock_t;
-#define TAS(lock) _check_lock(
lock
, 0, 1)
-#define S_UNLOCK(lock) _clear_lock(
lock
, 0)
+#define TAS(lock) _check_lock(
(slock_t *) (lock)
, 0, 1)
+#define S_UNLOCK(lock) _clear_lock(
(slock_t *) (lock)
, 0)
#endif /* _AIX */