aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-06-20 20:42:11 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-10-06 15:25:12 +0200
commitdd0038f5e2916b21f58d83dabe9675994635e41f (patch)
tree2201bc6130703f93767b07808d9f01420e3e70f4 /plugins
parentc2efb214afa9f712c7ac112899c7d9b730e10de0 (diff)
downloaddino-dd0038f5e2916b21f58d83dabe9675994635e41f.tar.gz
dino-dd0038f5e2916b21f58d83dabe9675994635e41f.zip
Fix every inclusion of `gpgme_fix.h` getting their own mutex
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpgme-vala/src/gpgme_fix.c4
-rw-r--r--plugins/gpgme-vala/src/gpgme_fix.h4
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 <gpgme_fix.h>
-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 <glib.h>
#include <gpgme.h>
-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