mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
- knews won't compile if you have png-1.0.12 installed.
I made a fix, but this interface in use is marked "depricated". - Bumped PORTREVISION
This commit is contained in:
parent
369fa2ec94
commit
9927ee0773
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44121
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= knews
|
||||
PORTVERSION= 1.0b.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= news
|
||||
MASTER_SITES= http://www.matematik.su.se/~kjj/
|
||||
|
||||
|
29
news/knews/files/patch-png.c
Normal file
29
news/knews/files/patch-png.c
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/png.c.orig Sat Nov 21 15:55:13 1998
|
||||
+++ src/png.c Sun Jun 17 19:58:21 2001
|
||||
@@ -80,6 +80,7 @@
|
||||
{
|
||||
png_struct p_str;
|
||||
png_info p_info;
|
||||
+ png_info * p_info_ptr;
|
||||
Pixmap pixmap;
|
||||
FILE *volatile vol_fp = NULL;
|
||||
void *volatile vol_pic = NULL;
|
||||
@@ -109,7 +110,8 @@
|
||||
unsigned int i, j, pass;
|
||||
|
||||
png_read_init(&p_str);
|
||||
- png_info_init(&p_info);
|
||||
+ p_info_ptr = &p_info;
|
||||
+ png_info_init_3(&p_info_ptr, sizeof(png_info));
|
||||
|
||||
png_init_io(&p_str, vol_fp);
|
||||
png_read_info(&p_str, &p_info);
|
||||
@@ -204,7 +206,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- png_read_destroy(&p_str, &p_info, NULL);
|
||||
+ png_read_destroy(&p_str, &p_info_ptr, NULL);
|
||||
fclose((FILE *)vol_fp);
|
||||
XtFree((char *)vol_pic);
|
||||
XtFree((char *)vol_pal);
|
Loading…
Reference in New Issue
Block a user