about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-04-17 10:14:27 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-04-17 10:14:27 +0200
commit0e1bccda18c51babc7f3c6aa3c82dcc6e56e9044 (patch)
tree90f6e23bfdba427f3c40bd2941df23d71ccc33d1 /src
parent9be7d29f1b8ab55fd377beeb9a5d31a4b32bf416 (diff)
downloadprofani-tty-0e1bccda18c51babc7f3c6aa3c82dcc6e56e9044.tar.gz
Define lock in profanity.h as extern
Fix https://github.com/profanity-im/profanity/issues/1314
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c1
-rw-r--r--src/profanity.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index dc7bf954..f3090f00 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -90,6 +90,7 @@ static void _init(char *log_level, char *config_file, char *log_file, char *them
 static void _shutdown(void);
 static void _connect_default(const char * const account);
 
+pthread_mutex_t lock;
 static gboolean cont = TRUE;
 static gboolean force_quit = FALSE;
 
diff --git a/src/profanity.h b/src/profanity.h
index 040a897a..bc4d45f5 100644
--- a/src/profanity.h
+++ b/src/profanity.h
@@ -43,6 +43,6 @@
 void prof_run(char *log_level, char *account_name, char *config_file, char *log_file, char *theme_name);
 void prof_set_quit(void);
 
-pthread_mutex_t lock;
+extern pthread_mutex_t lock;
 
 #endif