Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
85b7e835
Commit
85b7e835
authored
21 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix zic compiler to use pg version.
Move timezone database to share/timezone.
parent
04d426ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/timezone/Makefile
+3
-3
3 additions, 3 deletions
src/timezone/Makefile
src/timezone/pgtz.c
+3
-3
3 additions, 3 deletions
src/timezone/pgtz.c
with
6 additions
and
6 deletions
src/timezone/Makefile
+
3
−
3
View file @
85b7e835
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Makefile for the timezone library
# Makefile for the timezone library
# IDENTIFICATION
# IDENTIFICATION
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.
6
2004/04/30 20:
01:39
momjian Exp $
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.
7
2004/04/30 20:
23:28
momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -12,7 +12,7 @@ subdir = src/timezone
...
@@ -12,7 +12,7 @@ subdir = src/timezone
top_builddir
=
../..
top_builddir
=
../..
include
$(top_builddir)/src/Makefile.global
include
$(top_builddir)/src/Makefile.global
override
CPPFLAGS
+=
-DP
KGLIB
DIR
=
\"
$(
pkglib
dir
)
\"
override
CPPFLAGS
+=
-DP
GDATA
DIR
=
\"
$(
data
dir
)
\"
OBJS
=
asctime.o difftime.o localtime.o pgtz.o
OBJS
=
asctime.o difftime.o localtime.o pgtz.o
ZICOBJS
=
zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
ZICOBJS
=
zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
...
@@ -30,7 +30,7 @@ zic: $(ZICOBJS)
...
@@ -30,7 +30,7 @@ zic: $(ZICOBJS)
$(
CC
)
$(
CFLAGS
)
$(
ZICOBJS
)
$(
LDFLAGS
)
$(
LIBS
)
-o
$@
$(
X
)
$(
CC
)
$(
CFLAGS
)
$(
ZICOBJS
)
$(
LDFLAGS
)
$(
LIBS
)
-o
$@
$(
X
)
install
:
zic
install
:
zic
./zic
-d
$(
pkglib
dir
)
/
../
timezone
$(
TZDATAFILES
)
./zic
-d
$(
DESTDIR
)$(
data
dir
)
/timezone
$(
TZDATAFILES
)
clean distclean maintainer-clean
:
clean distclean maintainer-clean
:
rm
-f
SUBSYS.o
$(
OBJS
)
$(
ZICOBJS
)
rm
-f
SUBSYS.o
$(
OBJS
)
$(
ZICOBJS
)
...
...
This diff is collapsed.
Click to expand it.
src/timezone/pgtz.c
+
3
−
3
View file @
85b7e835
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.
2
2004/04/30
14:24:14
momjian Exp $
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.
3
2004/04/30
20:23:28
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -23,7 +23,7 @@ char *pgwin32_TZDIR(void) {
...
@@ -23,7 +23,7 @@ char *pgwin32_TZDIR(void) {
return
tzdir
;
return
tzdir
;
#ifndef WIN32
#ifndef WIN32
StrNCpy
(
tzdir
,
PKGLIB
DIR
,
MAXPGPATH
);
StrNCpy
(
tzdir
,
PGDATA
DIR
,
MAXPGPATH
);
#else
#else
if
(
GetModuleFileName
(
NULL
,
tzdir
,
MAXPGPATH
)
==
0
)
if
(
GetModuleFileName
(
NULL
,
tzdir
,
MAXPGPATH
)
==
0
)
return
NULL
;
return
NULL
;
...
@@ -35,7 +35,7 @@ char *pgwin32_TZDIR(void) {
...
@@ -35,7 +35,7 @@ char *pgwin32_TZDIR(void) {
else
else
*
p
=
'\0'
;
*
p
=
'\0'
;
strcat
(
tzdir
,
"/
../
timezone"
);
strcat
(
tzdir
,
"/timezone"
);
done_tzdir
=
1
;
done_tzdir
=
1
;
return
tzdir
;
return
tzdir
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment