Use native time zone files under Solaris.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22780 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
jbettis 2006-04-12 19:41:44 +00:00
parent 8e47af0c8d
commit e3b63da8ec

View file

@ -147,7 +147,12 @@
/* Many systems have this file */ /* Many systems have this file */
#define SYSTEM_TIME_FILE @"/etc/localtime" #define SYSTEM_TIME_FILE @"/etc/localtime"
/* If TZDIR told us where the zoneinfo files are, don't append anything else */
#ifdef TZDIR
#define POSIX_TZONES @""
#else
#define POSIX_TZONES @"posix/" #define POSIX_TZONES @"posix/"
#endif
/* Possible location of system time zone files */ /* Possible location of system time zone files */
static NSString *tzdir = nil; static NSString *tzdir = nil;
@ -2004,6 +2009,9 @@ static NSMapTable *absolutes = 0;
* Common locations for timezone info on unix systems. * Common locations for timezone info on unix systems.
*/ */
static NSString *zoneDirs[] = { static NSString *zoneDirs[] = {
#ifdef TZDIR
@ TZDIR,
#endif
@"/usr/share/zoneinfo", @"/usr/share/zoneinfo",
@"/usr/lib/zoneinfo", @"/usr/lib/zoneinfo",
@"/usr/local/share/zoneinfo", @"/usr/local/share/zoneinfo",