blob: ba6835a058744580dc8799aecf9fe408fbb25334 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
https://bugs.freedesktop.org/show_bug.cgi?id=105766
diff -ur poppler-0.63.0/goo/gfile.cc poppler-src/goo/gfile.cc
--- poppler-0.63.0/goo/gfile.cc
+++ poppler-src/goo/gfile.cc
@@ -34,9 +34,7 @@
#include <config.h>
-#ifdef _WIN32
-# include <time.h>
-#else
+#ifndef _WIN32
# if defined(MACOS)
# include <sys/stat.h>
# elif !defined(ACORN)
@@ -44,7 +42,6 @@
# include <sys/stat.h>
# include <fcntl.h>
# endif
-# include <time.h>
# include <limits.h>
# include <string.h>
# if !defined(VMS) && !defined(ACORN) && !defined(MACOS)
diff -ur poppler-0.63.0/goo/gfile.h poppler-src/goo/gfile.h
--- poppler-0.63.0/goo/gfile.h
+++ poppler-src/goo/gfile.h
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
+#include <time.h>
extern "C" {
#if defined(_WIN32)
# include <sys/stat.h>
@@ -49,8 +50,6 @@
# include <windows.h>
# endif
#elif defined(ACORN)
-#elif defined(MACOS)
-# include <ctime.h>
#else
# include <unistd.h>
# include <sys/types.h>
diff -ur poppler-0.63.0/poppler/Form.h poppler-src/poppler/Form.h
--- poppler-0.63.0/poppler/Form.h
+++ poppler-src/poppler/Form.h
@@ -33,6 +33,7 @@
#include <set>
#include <vector>
+#include <ctime>
class GooString;
class Array;
|