mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- fix build for png-1.4.1
This commit is contained in:
parent
a1a3d72265
commit
60659e98f2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251782
3 changed files with 33 additions and 0 deletions
11
japanese/ptex/files/patch-libs-gd-gd_png.c
Normal file
11
japanese/ptex/files/patch-libs-gd-gd_png.c
Normal file
|
@ -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
|
11
japanese/ptex/files/patch-texk-dvipdfm-pngimage.c
Normal file
11
japanese/ptex/files/patch-texk-dvipdfm-pngimage.c
Normal file
|
@ -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;
|
11
japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c
Normal file
11
japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue