archrelease: copy trunk to community-any
[ArchLinux/community.git] / ziproxy / repos / community-x86_64 / build-fix.patch
blob362665d4b9b0ee67ca72a796e2928d39ad4b02ae
1 diff -wbBur ziproxy-3.3.0/src/image.c ziproxy-3.3.0.my/src/image.c
2 --- ziproxy-3.3.0/src/image.c 2013-01-04 20:48:50.000000000 +0400
3 +++ ziproxy-3.3.0.my/src/image.c 2014-09-30 18:26:38.277455333 +0400
4 @@ -93,6 +93,10 @@
5 #define MIN_INSIZE_TO_JPEG 600
6 #define MIN_INSIZE_TO_JP2K 800
9 +#define false 0
10 +#define true !!0
12 //Forwards. There are more utility functions, but they're used only once.
13 static raw_bitmap *new_raw_bitmap();
15 @@ -905,7 +909,7 @@
16 desc.size=insize;
17 desc.x.pos=0;
19 - if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL)
20 + if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL)
21 return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more possible reasons
23 bmp = new_raw_bitmap();
24 @@ -1083,7 +1087,7 @@
26 bmp->pal_bpp = bmp->bpp;
28 - DGifCloseFile(GifFile);
29 + DGifCloseFile(GifFile, NULL);
30 return IMG_RET_OK;