aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_locks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_locks.h')
-rw-r--r--src/microhttpd/mhd_locks.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_locks.h b/src/microhttpd/mhd_locks.h
index f69c7861..a5a8fd67 100644
--- a/src/microhttpd/mhd_locks.h
+++ b/src/microhttpd/mhd_locks.h
@@ -82,9 +82,8 @@
82 * @param pmutex pointer to mutex 82 * @param pmutex pointer to mutex
83 */ 83 */
84#define MHD_mutex_destroy_(pmutex) do { \ 84#define MHD_mutex_destroy_(pmutex) do { \
85 if ( (0 != pthread_mutex_destroy((pmutex))) && \ 85 errno = 0; \
86 (EAGAIN != errno) && \ 86 if (0 != pthread_mutex_destroy((pmutex))) \
87 (EINPROGRESS != errno) ) \
88 MHD_PANIC (_("Failed to destroy mutex\n")); \ 87 MHD_PANIC (_("Failed to destroy mutex\n")); \
89 } while (0) 88 } while (0)
90#elif defined(MHD_W32_MUTEX_) 89#elif defined(MHD_W32_MUTEX_)