svn commit: r378335 - head/print/libmspub01/files
Jung-uk Kim
jkim at FreeBSD.org
Mon Feb 2 22:34:02 UTC 2015
Author: jkim
Date: Mon Feb 2 22:34:01 2015
New Revision: 378335
URL: https://svnweb.freebsd.org/changeset/ports/378335
QAT: https://qat.redports.org/buildarchive/r378335/
Log:
Fix build with GCC 4.2.
Reported by: antoine
Added:
head/print/libmspub01/files/
head/print/libmspub01/files/patch-src__lib__MSPUBMetaData.cpp (contents, props changed)
Added: head/print/libmspub01/files/patch-src__lib__MSPUBMetaData.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/print/libmspub01/files/patch-src__lib__MSPUBMetaData.cpp Mon Feb 2 22:34:01 2015 (r378335)
@@ -0,0 +1,11 @@
+--- src/lib/MSPUBMetaData.cpp.orig 2014-12-30 06:42:44.000000000 -0500
++++ src/lib/MSPUBMetaData.cpp 2015-02-02 17:30:18.706664000 -0500
+@@ -210,7 +210,7 @@
+ uint64_t modifiedTime = readU64(input);
+
+ // modifiedTime is number of 100ns since Jan 1 1601
+- static const uint64_t epoch = 11644473600;
++ static const uint64_t epoch = 11644473600ULL;
+ time_t sec = (modifiedTime / 10000000) - epoch;
+ const struct tm *time = localtime(&sec);
+ if (time)
More information about the svn-ports-all
mailing list