LZO 2.00 released--compatibility patch attached
Hi all, LZO 2.00 was just released, and it has a few API changes. Specifically the worst-case expansion formula prescribed by LZO.FAQ has changed, and headers now get their own lzo/ directory.
The former is probably best fixed by the attached patch. The latter is a simple include path check, which I won't bother with--it's pretty much a no-brainer. I get by just sticking "-I/usr/include/lzo" in my CPPFLAGS.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"
lzo.h +4 -0
@@ -44,7 +44,11 @@#define LZO_WORKSPACE LZO1X_1_15_MEM_COMPRESS#define LZO_DECOMPRESS lzo1x_decompress_safe +#if LZO_VERSION >=0x2000 +#define LZO_EXTRA_BUFFER (len) ((len)/16 + 64 + 3)/* LZO worst case size expansion. */ +#else #define LZO_EXTRA_BUFFER (len) ((len)/64 + 16 + 3)/* LZO worst case size expansion. */ +#endif /* * Don't try to compress any packet smaller than this.
Kelledin <[email protected]...> writes:
| Hi all, LZO 2.00 was just released, and it has a few API changes. | Specifically the worst-case expansion formula prescribed by LZO.FAQ | has changed, and headers now get their own lzo/ directory.
I also thought that the license changed. Isn't this the case?
Signature · 1 line
Lgb
[email protected]... (Lars Gullik Bjønnes) writes:
Quoted 1 line · | Kelledin
| | Hi all, LZO 2.00 was just released, and it has a few API changes. | | Specifically the worst-case expansion formula prescribed by LZO.FAQ | | has changed, and headers now get their own lzo/ directory.
Quoted 1 line
| I also thought that the license changed. Isn't this the case?
This isn't the case.
Still GPL.
Signature · 1 line
Lgb