1 From a48b0b1cd887d7f3ae67f525d7d334bd2feffe60 Mon Sep 17 00:00:00 2001
2 From: Alexander Tsoy <alexander@tsoy.me>
3 Date: Tue, 28 Jan 2020 22:21:01 +0300
4 Subject: [PATCH] Fix build with -fno-common
6 GCC 10 defaults to -fno-common
10 2 files changed, 6 insertions(+), 3 deletions(-)
12 diff --git a/src/util.c b/src/util.c
13 index a82a1a4..6a52ebf 100644
16 @@ -47,6 +47,9 @@ int hxl = 0;
17 #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
25 int nfix(int i, int n);
26 diff --git a/src/util.h b/src/util.h
27 index 35c1afd..99b5dd1 100644
30 @@ -102,9 +102,9 @@ extern struct timeval _mysleep;
31 #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
32 extern MUTEX(x11Mutex);
33 extern MUTEX(scrollMutex);
37 +extern MUTEX(clientMutex);
38 +extern MUTEX(inputMutex);
39 +extern MUTEX(pointerMutex);
42 #define X_INIT INIT_MUTEX(x11Mutex)