aboutsummaryrefslogtreecommitdiff
path: root/textproc/libvisio01/files
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-02-02 22:26:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-02-02 22:26:36 +0000
commitf9734c0c1aaf6d4ad16023f30eaf7090e6248f70 (patch)
treee96be26cbf66c3cce741d1a874a929c3e2e9a0e1 /textproc/libvisio01/files
parent07b7d49a72e823929ca367fa4ea8df7aa50d361b (diff)
downloadports-f9734c0c1aaf6d4ad16023f30eaf7090e6248f70.tar.gz
ports-f9734c0c1aaf6d4ad16023f30eaf7090e6248f70.zip
Fix build with GCC 4.2.
Reported by: antoine
Notes
Notes: svn path=/head/; revision=378334
Diffstat (limited to 'textproc/libvisio01/files')
-rw-r--r--textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
new file mode 100644
index 000000000000..6a0c5177ec62
--- /dev/null
+++ b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
@@ -0,0 +1,11 @@
+--- src/lib/VSDMetaData.cpp.orig 2015-01-01 16:11:45.000000000 -0500
++++ src/lib/VSDMetaData.cpp 2015-02-02 17:20:34.953039000 -0500
+@@ -226,7 +226,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)