summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2016-02-17 09:43:24 +0000
committerleot <leot@pkgsrc.org>2016-02-17 09:43:24 +0000
commit248d24d70e1e2c8011541f91ecb7ad66a23eec62 (patch)
tree78e1057ab199cd85872467fad35eb7b2b9d57f34 /print
parentc91aca08d794b4e614386ebf3871adbc5cef6dfe (diff)
downloadpkgsrc-248d24d70e1e2c8011541f91ecb7ad66a23eec62.tar.gz
Add a patch in order to correctly use _POSIX_SOURCE and bump _XOPEN_SOURCE to
700. Will hopefully fix build problems on SunOS: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications" Thanks jperkin@ (possible mistakes are mine!).
Diffstat (limited to 'print')
-rw-r--r--print/zathura/distinfo3
-rw-r--r--print/zathura/patches/patch-zathura_database-plain.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/print/zathura/distinfo b/print/zathura/distinfo
index f24efc112e5..6e8373b2ef8 100644
--- a/print/zathura/distinfo
+++ b/print/zathura/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2016/02/15 03:05:41 leot Exp $
+$NetBSD: distinfo,v 1.3 2016/02/17 09:43:24 leot Exp $
SHA1 (zathura-0.3.5.tar.gz) = 3b1d17c921a1f97999b3c8e90c0e55314e257fb4
RMD160 (zathura-0.3.5.tar.gz) = b22f2edfae79283f042f3f43c10d3e4ed5e3d406
SHA512 (zathura-0.3.5.tar.gz) = a28b10f58b88f8e162e693d164bd1bbe5a6580b49fcedb0825d0b981f74b91783d650dc13f230be41bee0d11c406f10b2b823e87306e8de5e5e09d70878a8610
Size (zathura-0.3.5.tar.gz) = 168808 bytes
+SHA1 (patch-zathura_database-plain.c) = 28b107ce014947dfb90377268ee0fc6cba3d2b4f
diff --git a/print/zathura/patches/patch-zathura_database-plain.c b/print/zathura/patches/patch-zathura_database-plain.c
new file mode 100644
index 00000000000..b28b9260b9f
--- /dev/null
+++ b/print/zathura/patches/patch-zathura_database-plain.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-zathura_database-plain.c,v 1.1 2016/02/17 09:43:24 leot Exp $
+
+Correctly define _POSIX_SOURCE and bump _XOPEN_SOURCE.
+
+--- zathura/database-plain.c.orig 2015-12-21 10:19:18.000000000 +0000
++++ zathura/database-plain.c
+@@ -1,7 +1,7 @@
+ /* See LICENSE file for license and copyright information */
+
+-#define _POSIX_SOURCE
+-#define _XOPEN_SOURCE 500
++#define _POSIX_SOURCE 1
++#define _XOPEN_SOURCE 700
+
+ #include <glib.h>
+ #include <stdlib.h>