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

22 lines
885 B
Diff

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 </data/data/com.termux/files/usr/include/python2.7/Python.h>
#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("/data/data/com.termux/files/usr/lib/libImlib2.so", RTLD_NOW|RTLD_GLOBAL);
if (!handle) {
printf("Imlib2 dlopen failed: %s\n", dlerror());