mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-31 15:12:07 +00:00
- See https://github.com/termux/termux-packages/pull/24215#issuecomment-2788227037 - Replaces all instances of `export PATH="$TERMUX_PREFIX/opt/libwayland/cross/bin:$PATH"` and `wayland-scanner` patches in reverse dependencies with `termux_setup_wayland_cross_pkg_config_wrapper` - Some packages were working because they were using `/usr/bin/wayland-scanner`, this changes all of them to use `$PREFIX/opt/libwayland/cross/bin/wayland-scanner` instead [no ci]
22 lines
506 B
Diff
22 lines
506 B
Diff
--- a/winpr/libwinpr/timezone/timezone.c
|
|
+++ b/winpr/libwinpr/timezone/timezone.c
|
|
@@ -243,8 +243,16 @@
|
|
|
|
static char* winpr_get_unix_timezone_identifier_from_file(void)
|
|
{
|
|
-#if defined(ANDROID)
|
|
- return winpr_get_android_timezone_identifier();
|
|
+#if defined(__TERMUX__)
|
|
+ FILE* fp = popen("getprop persist.sys.timezone", "r");
|
|
+ char* tzid = NULL;
|
|
+
|
|
+ if (fp) {
|
|
+ tzid = winpr_read_unix_timezone_identifier_from_file(fp);
|
|
+ pclose(fp);
|
|
+ }
|
|
+
|
|
+ return tzid;
|
|
#else
|
|
FILE* fp = NULL;
|
|
char* tzid = NULL;
|