diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-22 20:43:17 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-22 20:43:17 +0300 |
commit | a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1 (patch) | |
tree | e114ea88f5940a48ea5f19f9069b5339f5e63f9e | |
parent | 541d62839a73d2df6eac947e0baea05c1ab5ba95 (diff) | |
download | libmicrohttpd-a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1.tar.gz libmicrohttpd-a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1.zip |
Fixed support for old libgcrypt on W32 with W32 threads.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
2 files changed, 8 insertions, 5 deletions
@@ -1,3 +1,8 @@ | |||
1 | Sat 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 | |||
1 | Tue Apr 11 22:17:00 MSK 2017 | 6 | Tue 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) | |||
6664 | static int | 6664 | static int |
6665 | gcry_w32_mutex_destroy (void **ppmtx) | 6665 | gcry_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) | |||
6673 | static int | 6673 | static int |
6674 | gcry_w32_mutex_lock (void **ppmtx) | 6674 | gcry_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 | ||
6681 | static int | 6680 | static int |
6682 | gcry_w32_mutex_unlock (void **ppmtx) | 6681 | gcry_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 | ||