diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-30 11:39:28 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-30 11:39:28 +0800 |
commit | f6fa4996bab83e7676e825207221de3e856a101a (patch) | |
tree | 24cf4c985952fd7ff3c8e85b1dde4df0f5c2d6c2 /japanese/ptex | |
parent | d042aa6db6f4098ca7e11fe2f4d03df6ad410bba (diff) | |
download | freebsd-ports-gnome-f6fa4996bab83e7676e825207221de3e856a101a.tar.gz freebsd-ports-gnome-f6fa4996bab83e7676e825207221de3e856a101a.tar.zst freebsd-ports-gnome-f6fa4996bab83e7676e825207221de3e856a101a.zip |
- fix build for png-1.4.1
Diffstat (limited to 'japanese/ptex')
-rw-r--r-- | japanese/ptex/files/patch-libs-gd-gd_png.c | 11 | ||||
-rw-r--r-- | japanese/ptex/files/patch-texk-dvipdfm-pngimage.c | 11 | ||||
-rw-r--r-- | japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/japanese/ptex/files/patch-libs-gd-gd_png.c b/japanese/ptex/files/patch-libs-gd-gd_png.c new file mode 100644 index 000000000000..90006be9f914 --- /dev/null +++ b/japanese/ptex/files/patch-libs-gd-gd_png.c @@ -0,0 +1,11 @@ +--- libs/gd/gd_png.c.orig 2004-10-28 20:09:52.000000000 +0200 ++++ libs/gd/gd_png.c 2010-03-30 05:32:28.000000000 +0200 +@@ -143,7 +143,7 @@ + /* first do a quick check that the file really is a PNG image; could + * have used slightly more general png_sig_cmp() function instead */ + gdGetBuf (sig, 8, infile); +- if (!png_check_sig (sig, 8)) ++ if (png_sig_cmp (sig, 0, 8)) + return NULL; /* bad signature */ + + #ifndef PNG_SETJMP_NOT_SUPPORTED diff --git a/japanese/ptex/files/patch-texk-dvipdfm-pngimage.c b/japanese/ptex/files/patch-texk-dvipdfm-pngimage.c new file mode 100644 index 000000000000..16c595d0fac6 --- /dev/null +++ b/japanese/ptex/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-30 04:45:06.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/japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c b/japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c new file mode 100644 index 000000000000..59cf32181757 --- /dev/null +++ b/japanese/ptex/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-30 04:44: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; + } |