File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 66 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77 *
88 * IDENTIFICATION
9- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/01 01:38:53 momjian Exp $
9+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -33,15 +33,17 @@ pg_TZDIR(void)
3333#endif
3434
3535 canonicalize_path (tzdir );
36- #if 0
36+ #ifdef WIN32
37+ /* trim off binary name, then go up a directory */
3738 if ((p = last_path_separator (tzdir )) == NULL )
3839 return NULL ;
3940 else
4041 * p = '\0' ;
42+ strcat (tzdir , "/../share/timezone" );
4143#endif
42-
4344 strcat (tzdir , "/timezone" );
4445
46+
4547 done_tzdir = 1 ;
4648 return tzdir ;
4749}
You can’t perform that action at this time.
0 commit comments