diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-06-18 02:13:44 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-06-18 02:13:44 +0800 |
commit | 98ce022d4bc2024ed9e7999cf49c26522ccabc89 (patch) | |
tree | b83b542ec75b6a75df68bbc0e9b59e00f1b6d066 /news | |
parent | e071ec983839725127231bd772e2c43576c5a299 (diff) | |
download | freebsd-ports-gnome-98ce022d4bc2024ed9e7999cf49c26522ccabc89.tar.gz freebsd-ports-gnome-98ce022d4bc2024ed9e7999cf49c26522ccabc89.tar.zst freebsd-ports-gnome-98ce022d4bc2024ed9e7999cf49c26522ccabc89.zip |
- 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
Diffstat (limited to 'news')
-rw-r--r-- | news/knews/Makefile | 1 | ||||
-rw-r--r-- | news/knews/files/patch-png.c | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/news/knews/Makefile b/news/knews/Makefile index 7d15b040a832..8d3ce187c76b 100644 --- a/news/knews/Makefile +++ b/news/knews/Makefile @@ -7,6 +7,7 @@ PORTNAME= knews PORTVERSION= 1.0b.1 +PORTREVISION= 1 CATEGORIES= news MASTER_SITES= http://www.matematik.su.se/~kjj/ diff --git a/news/knews/files/patch-png.c b/news/knews/files/patch-png.c new file mode 100644 index 000000000000..5b876caa70ee --- /dev/null +++ b/news/knews/files/patch-png.c @@ -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); |