OCaml 4.14.0 rebuild
[arch-packages.git] / libgadu / trunk / gcc10.patch
blobb5b4470fa0af34f96b05d3f85d2c6f63d61baec3
1 From b6453a73f2651621fc2be591acf12952dfd3b15e Mon Sep 17 00:00:00 2001
2 From: Maciej Mrozowski <reavertm@gmail.com>
3 Date: Sun, 9 Feb 2020 03:33:09 +0100
4 Subject: [PATCH] Fix compilation with -fno-common
6 Fix compilation with -fno-common, default in upcoming gcc-10
7 Also see https://bugs.gentoo.org/708686
8 ---
9 test/manual/userconfig.h | 20 ++++++++++----------
10 1 file changed, 10 insertions(+), 10 deletions(-)
12 diff --git a/test/manual/userconfig.h b/test/manual/userconfig.h
13 index 70043e32..5be80c6f 100644
14 --- a/test/manual/userconfig.h
15 +++ b/test/manual/userconfig.h
16 @@ -19,16 +19,16 @@
17 #ifndef USERCONFIG_H
18 #define USERCONFIG_H
20 -unsigned int config_uin;
21 -char *config_password;
22 -unsigned int config_peer;
23 -char *config_file;
24 -char *config_dir;
25 -unsigned int config_size;
26 -unsigned long config_ip;
27 -unsigned int config_port;
28 -char *config_server;
29 -char *config_proxy;
30 +extern unsigned int config_uin;
31 +extern char *config_password;
32 +extern unsigned int config_peer;
33 +extern char *config_file;
34 +extern char *config_dir;
35 +extern unsigned int config_size;
36 +extern unsigned long config_ip;
37 +extern unsigned int config_port;
38 +extern char *config_server;
39 +extern char *config_proxy;
41 int config_read(void);
42 void config_free(void);