summaryrefslogtreecommitdiff
path: root/office/zathura/dlopen_hack.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-08-22 17:40:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-22 17:40:23 +0700
commit303e0f3ac8ede80e1e2fd1f3dddfdaea876f1d8f (patch)
tree801ab39150dda42909f41b8d70451fa63701098d /office/zathura/dlopen_hack.diff
parent21f9117729e7eaea0ec7b33b9271d20d390a155a (diff)
downloadslackbuilds-303e0f3ac8ede80e1e2fd1f3dddfdaea876f1d8f.tar.gz
office/zathura: Updated for version 0.2.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/zathura/dlopen_hack.diff')
-rw-r--r--office/zathura/dlopen_hack.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/office/zathura/dlopen_hack.diff b/office/zathura/dlopen_hack.diff
new file mode 100644
index 0000000000..6f4ef64c1f
--- /dev/null
+++ b/office/zathura/dlopen_hack.diff
@@ -0,0 +1,19 @@
+diff -Naur zathura-0.2.7/zathura.c zathura-0.2.7.patched/zathura.c
+--- zathura-0.2.7/zathura.c 2014-02-17 11:16:57.000000000 -0500
++++ zathura-0.2.7.patched/zathura.c 2014-08-22 02:39:14.000000000 -0400
+@@ -3,6 +3,7 @@
+ #define _BSD_SOURCE
+ #define _XOPEN_SOURCE 700
+
++#include <dlfcn.h>
+ #include <errno.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+@@ -101,6 +102,7 @@
+ }
+
+ /* load plugins */
++ dlopen("libjpeg.so", RTLD_NOW | RTLD_GLOBAL); /* dirty hack! */
+ zathura_plugin_manager_load(zathura->plugins.manager);
+
+ /* configuration */