Hello Gary,
Thanks for the quick response. Please don't even try what I committed.
It will not work.
I believe that I now understand what to do ...
Thanks,
Kern
On 06/19/2017 05:09 AM, Gary R. Schmidt wrote:
Hi Kern,
On 2017-06-19 02:55, Kern Sibbald wrote:
Hello Gary,
Could you send me a diff -u of your patch or simply the patched lz4.c
file. I think I did the inverse of what is needed -- that is I
removed the pack() on Solaris 10. If I did get it backwards, the code
will obviously not work.
diff -u:
===================================================
bacula-7.9.4/src/lib $ diff -u lz4.c.bad lz4.c
--- lz4.c.bad Fri Jun 16 17:27:26 2017
+++ lz4.c Fri Jun 16 17:27:43 2017
@@ -171,7 +171,7 @@
#endif
#if !defined(LZ4_FORCE_UNALIGNED_ACCESS) && !defined(__GNUC__)
-# pragma pack(push, 1)
+# pragma pack(1)
#endif
typedef struct _U16_S { U16 v; } _PACKED U16_S;
@@ -179,7 +179,7 @@
typedef struct _U64_S { U64 v; } _PACKED U64_S;
#if !defined(LZ4_FORCE_UNALIGNED_ACCESS) && !defined(__GNUC__)
-# pragma pack(pop)
+# pragma pack()
#endif
#define A64(x) (((U64_S *)(x))->v)
===================================================
And lz4.c file attached as well.
Cheers,
Gary B-)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel