summaryrefslogtreecommitdiff
path: root/print/poppler
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2018-04-17 05:20:55 +0000
committerwiz <wiz@pkgsrc.org>2018-04-17 05:20:55 +0000
commit3382944fa0cc0712cf9a3a51b304ed2c48d09024 (patch)
treeda80b73dd29dbe1f78825a523a3ba20d036fe12b /print/poppler
parent72e588b93aee9e299b80f0378c48ceedd1930b01 (diff)
downloadpkgsrc-3382944fa0cc0712cf9a3a51b304ed2c48d09024.tar.gz
poppler: add build fixes for NetBSD
Diffstat (limited to 'print/poppler')
-rw-r--r--print/poppler/patches/patch-goo_gfile.h15
-rw-r--r--print/poppler/patches/patch-poppler_CMap.cc15
2 files changed, 30 insertions, 0 deletions
diff --git a/print/poppler/patches/patch-goo_gfile.h b/print/poppler/patches/patch-goo_gfile.h
new file mode 100644
index 00000000000..8a489660cba
--- /dev/null
+++ b/print/poppler/patches/patch-goo_gfile.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-goo_gfile.h,v 1.1 2018/04/17 05:20:55 wiz Exp $
+
+Include sys/time.h for struct timespec.
+https://bugs.freedesktop.org/show_bug.cgi?id=106091
+
+--- goo/gfile.h.orig 2018-03-18 18:23:49.000000000 +0000
++++ goo/gfile.h
+@@ -37,6 +37,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stddef.h>
++#include <sys/time.h>
+ extern "C" {
+ #if defined(_WIN32)
+ # include <sys/stat.h>
diff --git a/print/poppler/patches/patch-poppler_CMap.cc b/print/poppler/patches/patch-poppler_CMap.cc
new file mode 100644
index 00000000000..6a983581013
--- /dev/null
+++ b/print/poppler/patches/patch-poppler_CMap.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-poppler_CMap.cc,v 1.1 2018/04/17 05:20:55 wiz Exp $
+
+Include sys/time.h for struct timespec.
+https://bugs.freedesktop.org/show_bug.cgi?id=106091
+
+--- poppler/CMap.cc.orig 2018-03-18 18:23:49.000000000 +0000
++++ poppler/CMap.cc
+@@ -33,6 +33,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <sys/time.h>
+ #include "goo/gmem.h"
+ #include "goo/gfile.h"
+ #include "goo/GooString.h"