diff options
author | jkim <jkim@FreeBSD.org> | 2015-02-03 06:26:36 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-02-03 06:26:36 +0800 |
commit | 8e8ae39b80345656d7fc98498ec7cce160d2e60c (patch) | |
tree | e96be26cbf66c3cce741d1a874a929c3e2e9a0e1 | |
parent | 4d3f0fc1e86e3f063877e3edb3bef195201be065 (diff) | |
download | freebsd-ports-gnome-8e8ae39b80345656d7fc98498ec7cce160d2e60c.tar.gz freebsd-ports-gnome-8e8ae39b80345656d7fc98498ec7cce160d2e60c.tar.zst freebsd-ports-gnome-8e8ae39b80345656d7fc98498ec7cce160d2e60c.zip |
Fix build with GCC 4.2.
Reported by: antoine
-rw-r--r-- | textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp | 11 |
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) |