From 0e1bccda18c51babc7f3c6aa3c82dcc6e56e9044 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 17 Apr 2020 10:14:27 +0200 Subject: [PATCH] Define lock in profanity.h as extern Fix https://github.com/profanity-im/profanity/issues/1314 --- src/profanity.c | 1 + src/profanity.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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