summaryrefslogtreecommitdiff
path: root/qmake/tools/qmutex_unix.cpp
Side-by-side diff
Diffstat (limited to 'qmake/tools/qmutex_unix.cpp') (more/less context) (show whitespace changes)
-rw-r--r--qmake/tools/qmutex_unix.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qmake/tools/qmutex_unix.cpp b/qmake/tools/qmutex_unix.cpp
index c861b2d..3eb59cf 100644
--- a/qmake/tools/qmutex_unix.cpp
+++ b/qmake/tools/qmutex_unix.cpp
@@ -45,3 +45,4 @@ typedef pthread_mutex_t Q_MUTEX_T;
#if ((defined(PTHREAD_MUTEX_RECURSIVE) && defined(PTHREAD_MUTEX_DEFAULT)) || \
- defined(Q_OS_FREEBSD)) && !defined(Q_OS_UNIXWARE) && !defined(Q_OS_SOLARIS)
+ defined(Q_OS_FREEBSD)) && !defined(Q_OS_UNIXWARE) && !defined(Q_OS_SOLARIS) && \
+ !defined(Q_OS_MAC)
// POSIX 1003.1c-1995 - We love this OS
@@ -663,3 +664,4 @@ bool QMutex::tryLock()
Constructs a QMutexLocker and locks \a mutex. The mutex will be
- unlocked when the QMutexLocker is destroyed.
+ unlocked when the QMutexLocker is destroyed. If \a mutex is zero,
+ QMutexLocker does nothing.