- 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:
Pav Lucistnik
2008-12-22 14:58:24 +00:00
parent 111792748d
commit e8fc3c258f
2 changed files with 21 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
PORTNAME= vtun
PORTVERSION= 3.0.2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF

View 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 ){