termux-packages/x11-packages/xorg-xvfb/xorg-server-1.20.1_os_access.c.patch
Leonid Pliushch 2a807e88ba
xorg-xvfb: update to 1.20.1
Now 'xorg-xvfb' depends on libmesa + libdrm.
GLX extension is enabled too.
2022-04-18 14:08:06 +05:30

13 lines
529 B
Diff

diff -uNr xorg-server-1.20.1/os/access.c xorg-server-1.20.1.mod/os/access.c
--- xorg-server-1.20.1/os/access.c 2018-08-07 19:31:05.000000000 +0300
+++ xorg-server-1.20.1.mod/os/access.c 2018-09-11 23:52:17.484825997 +0300
@@ -961,7 +961,7 @@
#if defined WIN32 && defined __MINGW32__
#define ETC_HOST_PREFIX "X"
#else
-#define ETC_HOST_PREFIX "/etc/X"
+#define ETC_HOST_PREFIX "/data/data/com.termux/files/usr/etc/X"
#endif
#define ETC_HOST_SUFFIX ".hosts"
fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +