From c38ebc3b6c7d6844209a58677379b61750b6504d Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Thu, 18 Nov 2021 19:34:36 +0200 Subject: jitterentropy: fix building on Win32 * random/jitterentropy.h (jent_notime_ctx): Add #ifdef JENT_CONF_ENABLE_INTERNAL_TIMER around pthread variables. -- GnuPG-bug-id: 5523 Signed-off-by: Jussi Kivilinna --- random/jitterentropy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'random') diff --git a/random/jitterentropy.h b/random/jitterentropy.h index 0a91f36a..97579bd0 100644 --- a/random/jitterentropy.h +++ b/random/jitterentropy.h @@ -393,8 +393,10 @@ int jent_entropy_switch_notime_impl(struct jent_notime_thread *new_thread); /* -- BEGIN timer-less threading support functions to prevent code dupes -- */ struct jent_notime_ctx { +#ifdef JENT_CONF_ENABLE_INTERNAL_TIMER pthread_attr_t notime_pthread_attr; /* pthreads library */ pthread_t notime_thread_id; /* pthreads thread ID */ +#endif }; #ifdef JENT_CONF_ENABLE_INTERNAL_TIMER -- cgit v1.2.1