Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85b7e83

Browse files
committed
Fix zic compiler to use pg version.
Move timezone database to share/timezone.
1 parent04d426b commit85b7e83

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/timezone/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Makefile for the timezone library
55

66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.6 2004/04/30 20:01:39 momjian Exp $
7+
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.7 2004/04/30 20:23:28 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
subdir = src/timezone
1212
top_builddir = ../..
1313
include$(top_builddir)/src/Makefile.global
1414

15-
overrideCPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\"
15+
overrideCPPFLAGS += -DPGDATADIR=\"$(datadir)\"
1616

1717
OBJS= asctime.o difftime.o localtime.o pgtz.o
1818
ZICOBJS= zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
@@ -30,7 +30,7 @@ zic: $(ZICOBJS)
3030
$(CC)$(CFLAGS)$(ZICOBJS)$(LDFLAGS)$(LIBS) -o$@$(X)
3131

3232
install: zic
33-
./zic -d$(pkglibdir)/../timezone$(TZDATAFILES)
33+
./zic -d$(DESTDIR)$(datadir)/timezone$(TZDATAFILES)
3434

3535
cleandistcleanmaintainer-clean:
3636
rm -f SUBSYS.o$(OBJS)$(ZICOBJS)

‎src/timezone/pgtz.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.2 2004/04/3014:24:14 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.3 2004/04/3020:23:28 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -23,7 +23,7 @@ char *pgwin32_TZDIR(void) {
2323
returntzdir;
2424

2525
#ifndefWIN32
26-
StrNCpy(tzdir,PKGLIBDIR,MAXPGPATH);
26+
StrNCpy(tzdir,PGDATADIR,MAXPGPATH);
2727
#else
2828
if (GetModuleFileName(NULL,tzdir,MAXPGPATH)==0)
2929
returnNULL;
@@ -35,7 +35,7 @@ char *pgwin32_TZDIR(void) {
3535
else
3636
*p='\0';
3737

38-
strcat(tzdir,"/../timezone");
38+
strcat(tzdir,"/timezone");
3939

4040
done_tzdir=1;
4141
returntzdir;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp