aboutsummaryrefslogtreecommitdiff
path: root/ports/osg/osgdb_zip_nozip.patch
blob: a16deca974d68f8e02bde29de5bc5a5e8a124093 (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
41
42
43
44
45
46
47
48
49
50
51
52
From bee432e701c541f9a86bd051b795c3e056e36646 Mon Sep 17 00:00:00 2001
From: Ankur Verma <ankurv@localhost.localdomain>
Date: Sun, 16 Aug 2020 14:36:31 -0700
Subject: [PATCH] osg

---
 src/osgPlugins/zip/unzip.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/osgPlugins/zip/unzip.cpp b/src/osgPlugins/zip/unzip.cpp
index 0bec28f0c..74e7b2413 100644
--- a/src/osgPlugins/zip/unzip.cpp
+++ b/src/osgPlugins/zip/unzip.cpp
@@ -1742,8 +1742,8 @@ int inflate_blocks_free(inflate_blocks_statef *s, z_streamp z)
 
 
 
-extern const char inflate_copyright[] =
-   " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
+//extern const char inflate_copyright[] =
+//   " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
 // If you use the zlib library in a product, an acknowledgment is welcome
 // in the documentation of your product. If for some reason you cannot
 // include such an acknowledgment, I would appreciate that you keep this
-- 
2.26.2

From 24d4036036884b350bd6c519b64626faa2c7e660 Mon Sep 17 00:00:00 2001
From: Ankur Verma <ankurv@localhost.localdomain>
Date: Thu, 20 Aug 2020 23:16:12 -0700
Subject: [PATCH] Symbol clashes

---
 src/osgPlugins/zip/unzip.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/osgPlugins/zip/unzip.cpp b/src/osgPlugins/zip/unzip.cpp
index 74e7b2413..f5169c6f4 100644
--- a/src/osgPlugins/zip/unzip.cpp
+++ b/src/osgPlugins/zip/unzip.cpp
@@ -213,7 +213,7 @@ DWORD GetFilePosU(HANDLE hfout)
   return ftell(hfout);
 }
 
-bool FileExists(const TCHAR *fn)
+static bool FileExists(const TCHAR *fn)
 { struct stat st;
   int res=stat(fn,&st);
   return (res==0);
-- 
2.26.2