mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
8e47af0c8d
commit
e3b63da8ec
1 changed files with 8 additions and 0 deletions
|
@ -147,7 +147,12 @@
|
|||
/* Many systems have this file */
|
||||
#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/"
|
||||
#endif
|
||||
|
||||
/* Possible location of system time zone files */
|
||||
static NSString *tzdir = nil;
|
||||
|
@ -2004,6 +2009,9 @@ static NSMapTable *absolutes = 0;
|
|||
* Common locations for timezone info on unix systems.
|
||||
*/
|
||||
static NSString *zoneDirs[] = {
|
||||
#ifdef TZDIR
|
||||
@ TZDIR,
|
||||
#endif
|
||||
@"/usr/share/zoneinfo",
|
||||
@"/usr/lib/zoneinfo",
|
||||
@"/usr/local/share/zoneinfo",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue