Files
pkgsrc-ng/print/ghostscript-agpl/patches/patch-ai
2014-11-05 12:41:07 +01:00

17 lines
683 B
Plaintext

$NetBSD: patch-ai,v 1.2 2013/08/22 21:07:08 adam Exp $
Replace BSD/Linux specific "qd" printf format specifier by "lld",
should fix build problem on Solaris reported by Joern Clausen per PR pkg/40664
--- base/mkromfs.c.orig 2009-02-13 12:20:54.000000000 +0100
+++ base/mkromfs.c
@@ -2302,7 +2302,7 @@
#endif
fprintf(out,"\n#include \"stdint_.h\"\n");
fprintf(out,"\n#include \"time_.h\"\n\n");
- fprintf(out," time_t gs_romfs_buildtime = %ld;\n\n", time(NULL));
+ fprintf(out," time_t gs_romfs_buildtime = %lld;\n\n", (long long)time(NULL));
/* process the remaining arguments (options interspersed with paths) */
for (; atarg < argc; atarg++) {