summaryrefslogtreecommitdiff
path: root/net-mail/ezmlm-idx/files/ezmlm-idx-7.0.0-fno-common.patch
blob: 11e4cb5d3533cb9585491b000007b9183a96640e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
fix build with -fno-common

--- a/ezmlm-get.c	2021-05-24 12:07:05.245657000 +0200
+++ b/ezmlm-get.c	2021-05-24 12:07:11.477657000 +0200
@@ -125,7 +125,7 @@
 
 int act = AC_NONE;		/* Action we do */
 int flageditor = 0;		/* if we're invoked for within dir/editor */
-struct stat st;
+static struct stat st;
 
 int flaglocked = 0;		/* if directory is locked */
 int flagq = 0;			/* don't use 'quoted-printable' */
@@ -157,7 +157,7 @@
 substdio ssindex;
 char indexbuf[1024];
 
-int fdlock;
+static int fdlock;
 
 void lockup(void)
 /* lock unless locked */
--- a/idxthread.c	2021-05-24 12:06:55.169657000 +0200
+++ b/idxthread.c	2021-05-24 12:07:09.197657000 +0200
@@ -39,13 +39,13 @@
 
 static char strnum[FMT_ULONG];
 
-struct stat st;
+static struct stat st;
 			/* if no data, these may be the entire table, so */
 			/* need to be static */
 static subentry sdummy;
 static authentry adummy;
 
-int fdlock;
+static int fdlock;
 
 /* NOTE: These do NOT prevent double locking */
 static void lockup(void)