mailutils: update to 3.18
[oi-userland.git] / components / x11 / x11vnc / patches / 00-gcc-10.patch
blob4934633860c4a830bbf2a065dfb41c950a7138ac
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
7 ---
8 src/util.c | 3 +++
9 src/util.h | 6 +++---
10 2 files changed, 6 insertions(+), 3 deletions(-)
12 diff --git a/src/util.c b/src/util.c
13 index a82a1a4..6a52ebf 100644
14 --- a/src/util.c
15 +++ b/src/util.c
16 @@ -47,6 +47,9 @@ int hxl = 0;
17 #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
18 MUTEX(x11Mutex);
19 MUTEX(scrollMutex);
20 +MUTEX(clientMutex);
21 +MUTEX(inputMutex);
22 +MUTEX(pointerMutex);
23 #endif
25 int nfix(int i, int n);
26 diff --git a/src/util.h b/src/util.h
27 index 35c1afd..99b5dd1 100644
28 --- a/src/util.h
29 +++ b/src/util.h
30 @@ -102,9 +102,9 @@ extern struct timeval _mysleep;
31 #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
32 extern MUTEX(x11Mutex);
33 extern MUTEX(scrollMutex);
34 -MUTEX(clientMutex);
35 -MUTEX(inputMutex);
36 -MUTEX(pointerMutex);
37 +extern MUTEX(clientMutex);
38 +extern MUTEX(inputMutex);
39 +extern MUTEX(pointerMutex);
40 #endif
42 #define X_INIT INIT_MUTEX(x11Mutex)