summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/libs/poppler/TLpatches/patch-03-time12
-rw-r--r--Build/source/libs/poppler/poppler-src/goo/gfile.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/TLpatches/patch-03-time b/Build/source/libs/poppler/TLpatches/patch-03-time
new file mode 100644
index 00000000000..2246093f695
--- /dev/null
+++ b/Build/source/libs/poppler/TLpatches/patch-03-time
@@ -0,0 +1,12 @@
+$ diff -u gfile.h.orig gfile.h
+--- gfile.h.orig 2018-03-22 15:08:01.913911597 +0100
++++ gfile.h 2018-03-22 15:00:59.106829862 +0100
+@@ -51,6 +51,8 @@
+ #elif defined(ACORN)
+ #elif defined(MACOS)
+ # include <ctime.h>
++#elif defined(__NetBSD__)
++#include <time.h>
+ #else
+ # include <unistd.h>
+ # include <sys/types.h>
diff --git a/Build/source/libs/poppler/poppler-src/goo/gfile.h b/Build/source/libs/poppler/poppler-src/goo/gfile.h
index 0741a92df96..b3117236eb7 100644
--- a/Build/source/libs/poppler/poppler-src/goo/gfile.h
+++ b/Build/source/libs/poppler/poppler-src/goo/gfile.h
@@ -51,6 +51,8 @@ extern "C" {
#elif defined(ACORN)
#elif defined(MACOS)
# include <ctime.h>
+#elif defined(__NetBSD__)
+#include <time.h>
#else
# include <unistd.h>
# include <sys/types.h>