- On systems (e.g FreeBSD amd64) where sizeof(unsigned int) differs from
sizeof(lzo_uint) this patch is necessary for the correct operation of vtun when LZO compression is enabled. PR: ports/129815 Submitted by: Bjoern Groenvall <bg@sics.se>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= vtun
|
||||
PORTVERSION= 3.0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
||||
20
net/vtun/files/patch-lfd_lzo.c
Normal file
20
net/vtun/files/patch-lfd_lzo.c
Normal file
@@ -0,0 +1,20 @@
|
||||
--- lfd_lzo.c- 2008-01-07 23:35:35.000000000 +0100
|
||||
+++ lfd_lzo.c 2008-12-19 17:58:55.293292741 +0100
|
||||
@@ -103,7 +103,7 @@
|
||||
*/
|
||||
int comp_lzo(int len, char *in, char **out)
|
||||
{
|
||||
- unsigned int zlen = 0;
|
||||
+ lzo_uint zlen = 0;
|
||||
int err;
|
||||
|
||||
if( (err=lzo1x_compress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
int decomp_lzo(int len, char *in, char **out)
|
||||
{
|
||||
- unsigned int zlen = 0;
|
||||
+ lzo_uint zlen = 0;
|
||||
int err;
|
||||
|
||||
if( (err=lzo1x_decompress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
|
||||
Reference in New Issue
Block a user