Browse code

enable pointer fix on TARGET_CPU_SPARC

git-svn: trunk@1769

Tomasz Kojm authored on 2005/11/22 20:49:06
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Tue Nov 22 12:45:35 CET 2005 (tk)
2
+---------------------------------
3
+  * libclamav/zziplib/zzip-zip.c: enable pointer fix on TARGET_CPU_SPARC, too
4
+				  (configure doesn't detect sparc64 in some
5
+				  cases)
6
+
1 7
 Mon Nov 21 22:36:35 CET 2005 (tk)
2 8
 ---------------------------------
3 9
   * libclamav/zziplib/zzip-zip.c: fix pointer misalignment problem on sparc64
... ...
@@ -642,7 +642,7 @@ __zzip_dir_parse (ZZIP_DIR* dir)
642 642
 {
643 643
     zzip_error_t rv;
644 644
     zzip_off_t filesize;
645
-#if defined(TARGET_CPU_SPARC64) && defined(HAVE_ATTRIB_ALIGNED)
645
+#if (defined(TARGET_CPU_SPARC64) || defined(TARGET_CPU_SPARC)) && defined(HAVE_ATTRIB_ALIGNED)
646 646
     struct zzip_disk_trailer trailer __attribute__((aligned));
647 647
 #else
648 648
     struct zzip_disk_trailer trailer;