gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 03/03: Fixed support for old libgcrypt on W


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 03/03: Fixed support for old libgcrypt on W32 with W32 threads.
Date: Sat, 22 Apr 2017 19:43:33 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit a6b47251b8e03ac78c8f7bf4f1198f4a05f073c1
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Apr 22 20:43:17 2017 +0300

    Fixed support for old libgcrypt on W32 with W32 threads.
---
 ChangeLog               | 5 +++++
 src/microhttpd/daemon.c | 8 +++-----
 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 @@
+Sat Apr 22 20:39:00 MSK 2017
+       Fixed builds in Linux without epoll.
+       Check for invalid --with-thread= configure parameters.
+       Fixed support for old libgcrypt on W32 with W32 threads. -EG
+
 Tue Apr 11 22:17:00 MSK 2017
        Releasing GNU libmicrohttpd 0.9.53. -EG
 
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)
 static int
 gcry_w32_mutex_destroy (void **ppmtx)
 {
-  int res = (MHD_mutex_destroy_chk_ ((MHD_mutex_*)*ppmtx)) ? 0 : 1;
+  int res = (MHD_mutex_destroy_ ((MHD_mutex_*)*ppmtx)) ? 0 : EINVAL;
   free (*ppmtx);
   return res;
 }
@@ -6673,16 +6673,14 @@ gcry_w32_mutex_destroy (void **ppmtx)
 static int
 gcry_w32_mutex_lock (void **ppmtx)
 {
-  MHD_mutex_lock_chk_ ((MHD_mutex_*)*ppmtx);
-  return 0;
+  return MHD_mutex_lock_ ((MHD_mutex_*)*ppmtx) ? 0 : EINVAL;
 }
 
 
 static int
 gcry_w32_mutex_unlock (void **ppmtx)
 {
-  MHD_mutex_unlock_chk_ ((MHD_mutex_*)*ppmtx);
-  return 0;
+  return MHD_mutex_unlock_ ((MHD_mutex_*)*ppmtx) ? 0 : EINVAL;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]