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:
Riccardo Mottola 2011-06-02 07:45:41 +00:00
parent 635bd46437
commit 3c2c5dee35
2 changed files with 7 additions and 2 deletions

View file

@ -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>
* Source/NSTimeZone.m: Allow for quotes around zone name in

View file

@ -1,5 +1,5 @@
/** 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>
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.
* If daylight is non-zero, then tzname[0] is only the name
@ -1623,6 +1623,7 @@ static NSMapTable *absolutes = 0;
* the definitive zone.
*
* FreeBSD doesn't implement TZSet fully, so we can't use it there.
* Apparently, OpenBSD neither.
*/
if (localZoneString == nil)
{