summaryrefslogtreecommitdiff
path: root/net/freerdp1/files/patch-libfreerdp-locale-timezone.c
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2016-12-11 04:36:57 +0000
committerBen Woods <woodsb02@FreeBSD.org>2016-12-11 04:36:57 +0000
commitd0ea56deb08f32659f5aef555ad218c6773f985e (patch)
tree3b8430d61957c595f3da0c8c31c214506f0917ca /net/freerdp1/files/patch-libfreerdp-locale-timezone.c
parent- Update to 0.7.10 (diff)
net/freerdp: Update to 2.0.0 pre-release (GitHub as of 2016.11.24)
- This update brings in the latest 2 years of FreeRDP project work, which has had a long time between tagging releases. - Remove DIRECTFB option, as it no longer compiles, and gets little upstream maintenance - Use NEON on aarch64, and optionally on armv6 - Mark as broken on armv6 on FreeBSD 11.0-RELEASE and early versions of 12.0-CURRENT - Fix issue with X11_USE=xorg= being truncated due to whitespace as it wrapped over multiple lines - Move installed *.cmake files to correct location for modules net/freerdp1: - create new port based on previous net/freerdp 1.2.0, as it is required by net/guacamole-server net/vinagre: - patch to work with the new version of net/freerdp 2.0.0 net/guacamole-server: - patch to work with net/freerdp1 PR: 212004 PR: 214956 Submitted by: Kyle Evans (maintainer) Reported by: John Hein <z7dr6ut7gs@snkmail.com> Reviewed by: Mikael Urankar <mikael.urankar@gmail.com> Reviewed by: Ting-Wei Lan <lantw44@gmail.com> Reviewed by: Antenore Gatta <antenore@simbiosi.org> Reviewed by: amdmi3 Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D8712
Notes
Notes: svn path=/head/; revision=428330
Diffstat (limited to 'net/freerdp1/files/patch-libfreerdp-locale-timezone.c')
-rw-r--r--net/freerdp1/files/patch-libfreerdp-locale-timezone.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/net/freerdp1/files/patch-libfreerdp-locale-timezone.c b/net/freerdp1/files/patch-libfreerdp-locale-timezone.c
new file mode 100644
index 000000000000..ee8d2e4bb070
--- /dev/null
+++ b/net/freerdp1/files/patch-libfreerdp-locale-timezone.c
@@ -0,0 +1,42 @@
+From f5dbe2c9a5fe050c1d7e014d3c1529befb8eea3b Mon Sep 17 00:00:00 2001
+From: ivan-83 <rozhuk.im@gmail.com>
+Date: Tue, 10 Mar 2015 04:40:47 +0300
+Subject: [PATCH] * FreeBSD timezone detection patch
+
+---
+ libfreerdp/locale/timezone.c | 15 +++++++++++----
+ 1 file changed, 11 insertions(+), 4 deletions(-)
+
+diff libfreerdp/locale/timezone.c libfreerdp/locale/timezone.c
+index 92b74e8..0375f9c 100644
+--- libfreerdp/locale/timezone.c
++++ libfreerdp/locale/timezone.c
+@@ -1521,8 +1523,11 @@ char* freerdp_get_unix_timezone_identifier()
+ return tzid;
+ }
+
++#ifdef __FreeBSD__
++ fp = fopen("/var/db/zoneinfo", "r");
++#else
+ fp = fopen("/etc/timezone", "r");
+-
++#endif
+ if (fp != NULL)
+ {
+ fseek(fp, 0, SEEK_END);
+@@ -1678,8 +1683,10 @@ void freerdp_time_zone_detect(TIME_ZONE_INFO* clientTimeZone)
+
+ #ifdef HAVE_TM_GMTOFF
+ #if defined(__FreeBSD__)
+- /*not the best solution, but could not get the right tyepcast*/
+- clientTimeZone->bias = 0;
++ if (local_time->tm_gmtoff >= 0)
++ clientTimeZone->bias = (UINT32) (local_time->tm_gmtoff / 60);
++ else
++ clientTimeZone->bias = (UINT32) (1440 + (INT32) (local_time->tm_gmtoff / 60));
+ #else
+ clientTimeZone->bias = timezone / 60;
+ #endif
+--
+2.4.1
+