mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Disable use of tzname on OpenBSD too
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e189595561
commit
ad9905a172
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2011-06-02 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSTimeZone.m: Disable use of tzname on OpenBSD too.
|
||||||
|
|
||||||
2011-06-02 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-06-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSTimeZone.m: Allow for quotes around zone name in
|
* Source/NSTimeZone.m: Allow for quotes around zone name in
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/** Time zone management. -*- Mode: ObjC -*-
|
/** Time zone management. -*- Mode: ObjC -*-
|
||||||
Copyright (C) 1997-2002 Free Software Foundation, Inc.
|
Copyright (C) 1997-20 11Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: Yoo C. Chung <wacko@laplace.snu.ac.kr>
|
Written by: Yoo C. Chung <wacko@laplace.snu.ac.kr>
|
||||||
Date: June 1997
|
Date: June 1997
|
||||||
|
@ -1615,7 +1615,7 @@ static NSMapTable *absolutes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if HAVE_TZSET && !defined(__FreeBSD__)
|
#if HAVE_TZSET && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||||
/*
|
/*
|
||||||
* Try to get timezone from tzset and tzname/daylight.
|
* Try to get timezone from tzset and tzname/daylight.
|
||||||
* If daylight is non-zero, then tzname[0] is only the name
|
* If daylight is non-zero, then tzname[0] is only the name
|
||||||
|
@ -1623,6 +1623,7 @@ static NSMapTable *absolutes = 0;
|
||||||
* the definitive zone.
|
* the definitive zone.
|
||||||
*
|
*
|
||||||
* FreeBSD doesn't implement TZSet fully, so we can't use it there.
|
* FreeBSD doesn't implement TZSet fully, so we can't use it there.
|
||||||
|
* Apparently, OpenBSD neither.
|
||||||
*/
|
*/
|
||||||
if (localZoneString == nil)
|
if (localZoneString == nil)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue