print/tex-luatex: fix build with C++11 compilers on CURRENT

PR:		225448
Reported by:	O.Hartmann <ohartmann@walstatt.org>
Approved by:	hrs (maintainer timeout)
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
This commit is contained in:
Kurt Jaeger 2018-02-07 19:10:49 +00:00
parent 0462a35b77
commit 0669bafe6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461171
2 changed files with 20 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= luatex
PORTVERSION= 0.80.0
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= print
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2015/
PKGNAMEPREFIX= tex-

View File

@ -0,0 +1,19 @@
--- luatexdir/image/pdftoepdf.w.orig 2018-01-31 15:17:41 UTC
+++ luatexdir/image/pdftoepdf.w
@@ -70,8 +70,14 @@ static char *get_file_checksum(char *a,
if (ck == NULL)
luatex_fail("PDF inclusion: out of memory while processing '%s'",
a);
- snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,
- (uint64_t) mtime);
+ // snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,
+ // (uint64_t) mtime);
+ snprintf(ck, PDF_CHECKSUM_SIZE, "%"
+ PRIu64
+ "_%"
+ PRIu64,
+ (uint64_t) size,
+ (uint64_t) mtime);
} else {
switch (fe) {
case FE_FAIL: