liblbxutil: Fix build with gcc10/-fno-common

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2020-08-13 17:58:31 -07:00
parent fc2217f310
commit 7683c1a606
2 changed files with 39 additions and 1 deletions
@@ -0,0 +1,36 @@
From 95ed4b743f197e20f1884a326d5a7128187a7ba6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 13 Aug 2020 17:56:30 -0700
Subject: [PATCH] lbx_zlib: Mark declration with extern
Fixes build with gcc10/-fno-common
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/lbx_zlib/lbx_zlib.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/lbx_zlib/lbx_zlib.h b/src/lbx_zlib/lbx_zlib.h
index 8ae8956..bec3b96 100644
--- a/src/lbx_zlib/lbx_zlib.h
+++ b/src/lbx_zlib/lbx_zlib.h
@@ -136,9 +136,9 @@ extern void Xfree(pointer /*ptr*/);
#endif
/* lbx_zlib.c */
-unsigned long stream_out_compressed;
-unsigned long stream_out_uncompressed;
-unsigned long stream_out_plain;
-unsigned long stream_in_compressed;
-unsigned long stream_in_uncompressed;
-unsigned long stream_in_plain;
+extern unsigned long stream_out_compressed;
+extern unsigned long stream_out_uncompressed;
+extern unsigned long stream_out_plain;
+extern unsigned long stream_in_compressed;
+extern unsigned long stream_in_uncompressed;
+extern unsigned long stream_in_plain;
--
2.28.0
@@ -7,7 +7,9 @@ DEPENDS += " xorgproto zlib"
PE = "1"
PR = "r11"
SRC_URI += "file://mkg3states-1.1.patch"
SRC_URI += "file://mkg3states-1.1.patch \
file://0001-lbx_zlib-Mark-declration-with-extern.patch \
"
SRC_URI[md5sum] = "273329a78c2e9ea189ac416c7fde94a1"
SRC_URI[sha256sum] = "c6b6ff7858ec619cafa8205debca6bf78c5610a2844a782ed643c7fd017cf8ae"