summaryrefslogtreecommitdiff
path: root/print/zathura/patches/patch-zathura_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/zathura/patches/patch-zathura_main.c')
-rw-r--r--print/zathura/patches/patch-zathura_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/print/zathura/patches/patch-zathura_main.c b/print/zathura/patches/patch-zathura_main.c
new file mode 100644
index 00000000000..8dbf12169f2
--- /dev/null
+++ b/print/zathura/patches/patch-zathura_main.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-zathura_main.c,v 1.1 2016/02/14 13:43:21 leot Exp $
+
+synctex_editor parameter is passed to init_zathura() inconditionally if
+WITH_SYNCTEX (or without). Declare it in both cases.
+
+--- zathura/main.c.orig 2015-12-21 10:19:18.000000000 +0000
++++ zathura/main.c
+@@ -135,8 +135,8 @@ main(int argc, char* argv[])
+ gchar* plugin_path = NULL;
+ gchar* loglevel = NULL;
+ gchar* password = NULL;
+-#ifdef WITH_SYNCTEX
+ gchar* synctex_editor = NULL;
++#ifdef WITH_SYNCTEX
+ gchar* synctex_fwd = NULL;
+ #endif
+ gchar* mode = NULL;