summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-21 21:25:44 +0100
committerJose <jose@zeroc.com>2013-01-21 21:25:44 +0100
commit956feb4fbba3fc0ad0267d69b07dfc1cee1510cb (patch)
tree31d77e1a4557f91a64430bfd1e9bbe5c434237fb /cpp
parentUndo OS X Frameworks updates (diff)
downloadice-956feb4fbba3fc0ad0267d69b07dfc1cee1510cb.tar.bz2
ice-956feb4fbba3fc0ad0267d69b07dfc1cee1510cb.tar.xz
ice-956feb4fbba3fc0ad0267d69b07dfc1cee1510cb.zip
Fix compilation warning
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/IceUtil/Mutex.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Mutex.h b/cpp/include/IceUtil/Mutex.h
index a0ec7f03676..79f7d3189b2 100644
--- a/cpp/include/IceUtil/Mutex.h
+++ b/cpp/include/IceUtil/Mutex.h
@@ -211,7 +211,11 @@ Mutex::lock(LockState&) const
#else
inline void
-Mutex::init(MutexProtocol protocol)
+Mutex::init(MutexProtocol
+#if defined(_POSIX_THREAD_PRIO_INHERIT) && _POSIX_THREAD_PRIO_INHERIT > 0
+ protocol
+#endif
+ )
{
int rc;
pthread_mutexattr_t attr;