Package: hdf-eos4 / 2.20v1.00-1

szip_fixes.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
Description: A fix needed to get hdf-eos4 to compile without SZLIB support.
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2009-05-23
Forwarded: no

Index: hdf-eos4-2.20v1.00/src/GDapi.c
===================================================================
--- hdf-eos4-2.20v1.00.orig/src/GDapi.c
+++ hdf-eos4-2.20v1.00/src/GDapi.c
@@ -3790,6 +3790,7 @@ GDdeffield(int32 gridID, const char *fie
 			    chunkDef.comp.cinfo.deflate.level =
 				c_info.deflate.level;
 			}
+#if defined(H4_HAVE_SZLIB_H) && defined(H4_HAVE_LIBSZ)
 			else if (compcode == HDFE_COMP_SZIP )
 			{
 			    chunkDef.comp.cinfo.szip.pixels_per_block = 
@@ -3797,6 +3798,7 @@ GDdeffield(int32 gridID, const char *fie
 			    chunkDef.comp.cinfo.szip.options_mask = 
 			        c_info.szip.options_mask;
 			}
+#endif
 		    }
 
 		    /* Call SDsetchunk routine */