termux-packages/x11-packages/pypanel/PyPanel-2.4_ppmodule.c.patch

22 lines
853 B
Diff
Raw Normal View History

2018-09-10 00:42:26 +02:00
diff -uNr PyPanel-2.4/ppmodule.c PyPanel-2.4.mod/ppmodule.c
--- PyPanel-2.4/ppmodule.c 2005-06-27 02:24:43.000000000 +0300
+++ PyPanel-2.4.mod/ppmodule.c 2017-12-12 17:52:46.256911457 +0200
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <Python.h>
+#include <@TERMUX_PREFIX@/include/python2.7/Python.h>
2018-09-10 00:42:26 +02:00
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <Imlib2.h>
@@ -265,7 +265,7 @@
attempting to open them later with the RTLD_NOW flag which fails. If
you're reading this and know of a proper solution, please let me know ..
*/
- handle = dlopen("/usr/lib/libImlib2.so.1", RTLD_NOW|RTLD_GLOBAL);
+ handle = dlopen("@TERMUX_PREFIX@/lib/libImlib2.so", RTLD_NOW|RTLD_GLOBAL);
2018-09-10 00:42:26 +02:00
if (!handle) {
printf("Imlib2 dlopen failed: %s\n", dlerror());