Browse code

the ugly hack isn't needed on Solaris after all, if building with system zlib. Instead defining only Z_BLOCK is enough.

git-svn: trunk@3467

Török Edvin authored on 2007/12/29 23:37:54
Showing 4 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sat Dec 29 16:02:47 EET 2007 (edwin)
2
+------------------------------------
3
+  * libclamav: the ugly hack isn't needed on Solaris after all, if building
4
+  with system zlib. Instead defining only Z_BLOCK is enough.
5
+
1 6
 Sat Dec 29 14:41:29 CET 2007 (acab)
2 7
 -----------------------------------
3 8
   * libclamav:	Misc fixes to make gcc 3.4.6 work on solaris
... ...
@@ -19,11 +19,6 @@
19 19
 #ifndef __DCONF_H
20 20
 #define __DCONF_H
21 21
 
22
-/* DIRTY HACK TO COMPILE ON SOLARIS GCC 3.4.6 */
23
-#ifdef Byte
24
-#undef Byte
25
-#endif
26
-/* DIRTY HACK TO COMPILE ON SOLARIS GCC 3.4.6 */
27 22
 
28 23
 #include <stdio.h>
29 24
 #include <zlib.h>
... ...
@@ -48,6 +48,10 @@
48 48
 
49 49
 #include <zlib.h> /* adler/crc32 */
50 50
 
51
+#ifndef Z_BLOCK
52
+#define Z_BLOCK 5
53
+#endif
54
+
51 55
 #ifndef local
52 56
 #  define local static
53 57
 #endif
... ...
@@ -22,9 +22,6 @@
22 22
 #ifndef __LZMA_IFACE_H
23 23
 #define __LZMA_IFACE_H
24 24
 
25
-/* DIRTY HACK TO COMPILE ON SOLARIS GCC 3.4.6 */
26
-#define Byte BByte
27
-/* DIRTY HACK TO COMPILE ON SOLARIS GCC 3.4.6 */
28 25
 
29 26
 #include "LzmaStateDecode.h"
30 27
 #include "cltypes.h"