git-svn: trunk@3470
Török Edvin authored on 2007/12/30 01:36:35... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Sat Dec 29 18:01:35 EET 2007 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/msexpand.c: fix typo causing build failure with Sun's cc on |
|
4 |
+ Solaris. Add missing pack pragmas. |
|
5 |
+ |
|
1 | 6 |
Sat Dec 29 15:05:11 GMT 2007 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* clamav-milter: Correct nul termination in ping response from clamd |
... | ... |
@@ -37,6 +37,14 @@ |
37 | 37 |
#define __attribute__(x) |
38 | 38 |
#endif |
39 | 39 |
|
40 |
+#ifdef HAVE_PRAGMA_PACK |
|
41 |
+#pragma pack(1) |
|
42 |
+#endif |
|
43 |
+ |
|
44 |
+#ifdef HAVE_PRAGMA_PACK_HPPA |
|
45 |
+#pragma pack 1 |
|
46 |
+#endif |
|
47 |
+ |
|
40 | 48 |
#define EC32(x) le32_to_host(x) |
41 | 49 |
#define EC16(x) le16_to_host(x) |
42 | 50 |
|
... | ... |
@@ -49,7 +57,15 @@ struct msexp_hdr { |
49 | 49 |
uint32_t magic2; |
50 | 50 |
uint16_t magic3; |
51 | 51 |
uint32_t fsize; |
52 |
-} __attribute((packed)); |
|
52 |
+} __attribute__((packed)); |
|
53 |
+ |
|
54 |
+#ifdef HAVE_PRAGMA_PACK |
|
55 |
+#pragma pack() |
|
56 |
+#endif |
|
57 |
+ |
|
58 |
+#ifdef HAVE_PRAGMA_PACK_HPPA |
|
59 |
+#pragma pack |
|
60 |
+#endif |
|
53 | 61 |
|
54 | 62 |
#define BSIZE 4096 |
55 | 63 |
#define RWBUFF 2048 |