about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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