Package: barcode / 0.99-4

0006-Fix-FTBFS-with-gcc-10.patch Patch series | download
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
From: Boyuan Yang <byang@debian.org>
Date: Thu, 23 Jul 2020 22:45:48 -0400
Subject: Fix FTBFS with gcc 10

Bug-Debian: https://bugs.debian.org/957035
Forwarded: no
---
 barcode.h | 2 +-
 library.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/barcode.h b/barcode.h
index ed90e0c..ff7b8b4 100644
--- a/barcode.h
+++ b/barcode.h
@@ -123,6 +123,6 @@ extern int Barcode_Version(char *versionname);
 }
 #endif
 
-int streaming;
+extern int streaming;
 
 #endif /* _BARCODE_H_ */
diff --git a/library.c b/library.c
index 30946ff..5390a2b 100644
--- a/library.c
+++ b/library.c
@@ -30,6 +30,8 @@
 #endif
 #include <errno.h>
 
+int streaming;
+
 /*
  * This function allocates a barcode structure and strdup()s the
  * text string. It returns NULL in case of error