1
0
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:
Dirk Meyer 2001-06-17 18:13:44 +00:00
parent 369fa2ec94
commit 9927ee0773
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44121
2 changed files with 30 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= knews
PORTVERSION= 1.0b.1
PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= http://www.matematik.su.se/~kjj/

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