Add support for tz package

Fixes error message while freerdp connected the remote desktop:
Unable to detect time zone
This commit is contained in:
Scott Fan 2015-07-13 15:01:17 +08:00
parent 770c67d340
commit 605d0a8518

View File

@ -1539,7 +1539,8 @@ char* freerdp_get_unix_timezone_identifier()
* America/Montreal for example.
*/
if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1)
if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1 ||
(len = readlink("/etc/TZ", buf, sizeof(buf) - 1)) != -1)
{
int num = 0;
int pos = len;