diff options
Diffstat (limited to 'src/microhttpd/mhd_locks.h')
-rw-r--r-- | src/microhttpd/mhd_locks.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_locks.h b/src/microhttpd/mhd_locks.h index 4f2c17e5..21db56c4 100644 --- a/src/microhttpd/mhd_locks.h +++ b/src/microhttpd/mhd_locks.h | |||
@@ -86,6 +86,15 @@ | |||
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | #if defined(MHD_PTHREAD_MUTEX_) | 88 | #if defined(MHD_PTHREAD_MUTEX_) |
89 | # if defined(PTHREAD_MUTEX_INITIALIZER) | ||
90 | /** | ||
91 | * Define static mutex and statically initialise it. | ||
92 | */ | ||
93 | # define MHD_MUTEX_STATIC_DEFN_INIT_(m) static MHD_mutex_ m = PTHREAD_MUTEX_INITIALIZER | ||
94 | # endif /* PTHREAD_MUTEX_INITIALIZER */ | ||
95 | #endif | ||
96 | |||
97 | #if defined(MHD_PTHREAD_MUTEX_) | ||
89 | /** | 98 | /** |
90 | * Destroy previously initialised mutex. | 99 | * Destroy previously initialised mutex. |
91 | * @param pmutex pointer to mutex | 100 | * @param pmutex pointer to mutex |