blob: 69f4e420b20d1fa8419ca90e44b1c2f89a465dd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff -ur poppler-0.63.0/goo/gfile.cc poppler-src/goo/gfile.cc
--- poppler-0.63.0/goo/gfile.cc Mon Mar 19 03:23:49 2018
+++ poppler-src/goo/gfile.cc Wed Mar 21 06:47:42 2018
@@ -80,7 +80,14 @@
struct StatMtim
{
static const struct timespec& value(const Stat& stbuf) {
+#ifdef HAVE_STRUCT_STAT_ST_MTIM
return stbuf.st_mtim;
+#else
+ static struct timespec t ;
+ t.tv_sec=stbuf.st_mtime;
+ t.tv_nsec=0;
+ return t;
+#endif
}
};
|