diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-28 22:05:35 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-28 22:05:35 +0800 |
commit | f504b5ba9685fb3d3f2a28bd075ad877e9b149b3 (patch) | |
tree | c6d7e782945bd5769014cebf7fcf77e9da295715 | |
parent | 878248fa393718841139a527f9885d592f1206cd (diff) | |
download | freebsd-ports-gnome-f504b5ba9685fb3d3f2a28bd075ad877e9b149b3.tar.gz freebsd-ports-gnome-f504b5ba9685fb3d3f2a28bd075ad877e9b149b3.tar.zst freebsd-ports-gnome-f504b5ba9685fb3d3f2a28bd075ad877e9b149b3.zip |
- fix build for png-1.4.1
PR: 145108
-rw-r--r-- | print/teTeX-base/files/patch-texk-dvipdfm-pngimage.c | 11 | ||||
-rw-r--r-- | print/teTeX-base/files/patch-texk-dvipdfm-thumbnail.c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/print/teTeX-base/files/patch-texk-dvipdfm-pngimage.c b/print/teTeX-base/files/patch-texk-dvipdfm-pngimage.c new file mode 100644 index 000000000000..dc42e63fb7af --- /dev/null +++ b/print/teTeX-base/files/patch-texk-dvipdfm-pngimage.c @@ -0,0 +1,11 @@ +--- texk/dvipdfm/pngimage.c.orig 2002-12-25 18:51:16.000000000 +0100 ++++ texk/dvipdfm/pngimage.c 2010-03-28 16:00:00.000000000 +0200 +@@ -42,7 +42,7 @@ + rewind (png_file); + if (fread (sigbytes, 1, sizeof(sigbytes), png_file) != + sizeof(sigbytes) || +- (!png_check_sig (sigbytes, sizeof(sigbytes)))) ++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) + return 0; + else + return 1; diff --git a/print/teTeX-base/files/patch-texk-dvipdfm-thumbnail.c b/print/teTeX-base/files/patch-texk-dvipdfm-thumbnail.c new file mode 100644 index 000000000000..db6dc8bd0f41 --- /dev/null +++ b/print/teTeX-base/files/patch-texk-dvipdfm-thumbnail.c @@ -0,0 +1,11 @@ +--- texk/dvipdfm/thumbnail.c.orig 2002-12-25 18:51:16.000000000 +0100 ++++ texk/dvipdfm/thumbnail.c 2010-03-28 15:59:51.000000000 +0200 +@@ -79,7 +79,7 @@ + } + if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) != + sizeof(sigbytes) || +- (!png_check_sig (sigbytes, sizeof(sigbytes)))) { ++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) { + fprintf (stderr, "\nThumbnail not a png file! Skipping\n"); + return NULL; + } |