aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-22 20:43:17 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-22 20:43:17 +0300
commita6b47251b8e03ac78c8f7bf4f1198f4a05f073c1 (patch)
treee114ea88f5940a48ea5f19f9069b5339f5e63f9e
parent541d62839a73d2df6eac947e0baea05c1ab5ba95 (diff)
downloadlibmicrohttpd-a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1.tar.gz
libmicrohttpd-a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1.zip
Fixed support for old libgcrypt on W32 with W32 threads.
-rw-r--r--ChangeLog5
-rw-r--r--src/microhttpd/daemon.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 77984c9e..3b07dc14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1Sat Apr 22 20:39:00 MSK 2017
2 Fixed builds in Linux without epoll.
3 Check for invalid --with-thread= configure parameters.
4 Fixed support for old libgcrypt on W32 with W32 threads. -EG
5
1Tue Apr 11 22:17:00 MSK 2017 6Tue Apr 11 22:17:00 MSK 2017
2 Releasing GNU libmicrohttpd 0.9.53. -EG 7 Releasing GNU libmicrohttpd 0.9.53. -EG
3 8
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 02713e3a..fb8922f4 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -6664,7 +6664,7 @@ gcry_w32_mutex_init (void **ppmtx)
6664static int 6664static int
6665gcry_w32_mutex_destroy (void **ppmtx) 6665gcry_w32_mutex_destroy (void **ppmtx)
6666{ 6666{
6667 int res = (MHD_mutex_destroy_chk_ ((MHD_mutex_*)*ppmtx)) ? 0 : 1; 6667 int res = (MHD_mutex_destroy_ ((MHD_mutex_*)*ppmtx)) ? 0 : EINVAL;
6668 free (*ppmtx); 6668 free (*ppmtx);
6669 return res; 6669 return res;
6670} 6670}
@@ -6673,16 +6673,14 @@ gcry_w32_mutex_destroy (void **ppmtx)
6673static int 6673static int
6674gcry_w32_mutex_lock (void **ppmtx) 6674gcry_w32_mutex_lock (void **ppmtx)
6675{ 6675{
6676 MHD_mutex_lock_chk_ ((MHD_mutex_*)*ppmtx); 6676 return MHD_mutex_lock_ ((MHD_mutex_*)*ppmtx) ? 0 : EINVAL;
6677 return 0;
6678} 6677}
6679 6678
6680 6679
6681static int 6680static int
6682gcry_w32_mutex_unlock (void **ppmtx) 6681gcry_w32_mutex_unlock (void **ppmtx)
6683{ 6682{
6684 MHD_mutex_unlock_chk_ ((MHD_mutex_*)*ppmtx); 6683 return MHD_mutex_unlock_ ((MHD_mutex_*)*ppmtx) ? 0 : EINVAL;
6685 return 0;
6686} 6684}
6687 6685
6688 6686