diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-06-17 18:13:44 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-06-17 18:13:44 +0000 |
commit | 9927ee0773e20795bb42dc8e8a75d4d6e640342c (patch) | |
tree | c7bf12d216dcc3ed89bb59034d7121f609b291bf /news | |
parent | 369fa2ec945e66b44119571c33c6339e541b236a (diff) | |
download | ports-9927ee0773e20795bb42dc8e8a75d4d6e640342c.tar.gz ports-9927ee0773e20795bb42dc8e8a75d4d6e640342c.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
Notes
Notes:
svn path=/head/; revision=44121
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); |