Mailing List Archive

[PATCH] Fix building t-lock for WIN32
* tests/t-lock.c (external_lock_test_init, external_lock_test_lock)
(externel_lock_test_unlock, external_lock_test_destroy)
(nonce_thread, get_rand, pick_account, pick_value, revision_thread)
(accountant_thread): Build also if _WIN32 defined in addition to
HAVE_PTHREAD.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
tests/t-lock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/t-lock.c b/tests/t-lock.c
index e09b782e4..e263aff2e 100644
--- a/tests/t-lock.c
+++ b/tests/t-lock.c
@@ -90,7 +90,7 @@ struct thread_arg_s



-#ifdef HAVE_PTHREAD
+#if defined(HAVE_PTHREAD) || defined(_WIN32)
/* Wrapper functions to access Libgcrypt's internal test lock. */
static void
external_lock_test_init (int line)
@@ -136,7 +136,7 @@ external_lock_test_destroy (int line)



-#ifdef HAVE_PTHREAD
+#if defined(HAVE_PTHREAD) || defined(_WIN32)
/* The nonce thread. We simply request a couple of nonces and
return. */
static THREAD_RET_TYPE
@@ -253,7 +253,7 @@ print_accounts (void)
}


-#ifdef HAVE_PTHREAD
+#if defined(HAVE_PTHREAD) || defined(_WIN32)
/* Get a a random integer value in the range 0 to HIGH. */
static unsigned int
get_rand (int high)


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel