summaryrefslogtreecommitdiff
path: root/source4/include/mutex.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-16 03:34:23 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-16 03:34:23 +0000
commit2c6b585f2de11d4facfe06b8e8db789d22955716 (patch)
tree2a89f80d3ddff3e3861dcfa8e100c4f6587a3b18 /source4/include/mutex.h
parentff6478bb4a894228a8959ede750da9d079c13c7b (diff)
downloadsamba-2c6b585f2de11d4facfe06b8e8db789d22955716.tar.gz
samba-2c6b585f2de11d4facfe06b8e8db789d22955716.tar.bz2
samba-2c6b585f2de11d4facfe06b8e8db789d22955716.zip
more portability fixes. We now almost compile on solaris
(This used to be commit f4abd20b8437703211676fb12ea23af8f0e4642a)
Diffstat (limited to 'source4/include/mutex.h')
-rw-r--r--source4/include/mutex.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/include/mutex.h b/source4/include/mutex.h
index 20caaf5aa2..ec1a7d285c 100644
--- a/source4/include/mutex.h
+++ b/source4/include/mutex.h
@@ -38,12 +38,12 @@ enum rwlock_id { RWLOCK_SMBD, /* global smbd lock */
RWLOCK_MAX /* this MUST be kept last */
};
-#define MUTEX_LOCK_BY_ID(mutex_index) mutex_lock_by_id(mutex_index, #mutex_index)
-#define MUTEX_UNLOCK_BY_ID(mutex_index) mutex_unlock_by_id(mutex_index, #mutex_index)
-#define MUTEX_INIT(mutex, name) mutex_init(mutex, #name)
-#define MUTEX_DESTROY(mutex, name) mutex_destroy(mutex, #name)
-#define MUTEX_LOCK(mutex, name) mutex_lock(mutex, #name)
-#define MUTEX_UNLOCK(mutex, name) mutex_unlock(mutex, #name)
+#define MUTEX_LOCK_BY_ID(mutex_index) smb_mutex_lock_by_id(mutex_index, #mutex_index)
+#define MUTEX_UNLOCK_BY_ID(mutex_index) smb_mutex_unlock_by_id(mutex_index, #mutex_index)
+#define MUTEX_INIT(mutex, name) smb_mutex_init(mutex, #name)
+#define MUTEX_DESTROY(mutex, name) smb_mutex_destroy(mutex, #name)
+#define MUTEX_LOCK(mutex, name) smb_mutex_lock(mutex, #name)
+#define MUTEX_UNLOCK(mutex, name) smb_mutex_unlock(mutex, #name)
#define RWLOCK_INIT(rwlock, name) rwlock_init(rwlock, #name)
#define RWLOCK_DESTROY(rwlock, name) rwlock_destroy(rwlock, #name)