From dd0038f5e2916b21f58d83dabe9675994635e41f Mon Sep 17 00:00:00 2001 From: hrxi Date: Tue, 20 Jun 2023 20:42:11 +0200 Subject: [PATCH] Fix every inclusion of `gpgme_fix.h` getting their own mutex --- plugins/gpgme-vala/src/gpgme_fix.c | 4 ++-- plugins/gpgme-vala/src/gpgme_fix.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/gpgme-vala/src/gpgme_fix.c b/plugins/gpgme-vala/src/gpgme_fix.c index 2bc139e9..bf457a6c 100644 --- a/plugins/gpgme-vala/src/gpgme_fix.c +++ b/plugins/gpgme-vala/src/gpgme_fix.c @@ -1,6 +1,6 @@ #include -static GRecMutex gpgme_global_mutex = {0}; +GRecMutex gpgme_global_mutex = {0}; gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key) { gpgme_key_ref(key); @@ -9,4 +9,4 @@ gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key) { gpgme_key_t gpgme_key_unref_vapi (gpgme_key_t key) { gpgme_key_unref(key); return key; -} \ No newline at end of file +} diff --git a/plugins/gpgme-vala/src/gpgme_fix.h b/plugins/gpgme-vala/src/gpgme_fix.h index 3daa7db0..714614fc 100644 --- a/plugins/gpgme-vala/src/gpgme_fix.h +++ b/plugins/gpgme-vala/src/gpgme_fix.h @@ -4,9 +4,9 @@ #include #include -static GRecMutex gpgme_global_mutex; +extern GRecMutex gpgme_global_mutex; gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key); gpgme_key_t gpgme_key_unref_vapi (gpgme_key_t key); -#endif \ No newline at end of file +#endif