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

Commit5f5db80

Browse files
committed
Provide snprintf() if system hasn't got it.
1 parent7cdbc1e commit5f5db80

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

‎contrib/pg_controldata/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
#
2-
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.3 2001/03/13 01:17:40 tgl Exp $
2+
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.4 2001/04/03 19:06:19 tgl Exp $
33
#
44

55
subdir = contrib/pg_controldata
66
top_builddir = ../..
77
include$(top_builddir)/src/Makefile.global
88

9-
OBJS= pg_controldata.o pg_crc.o
9+
OBJS= pg_controldata.o pg_crc.o$(SNPRINTF)
1010

1111
all: pg_controldata
1212

1313
pg_controldata:$(OBJS)
1414
$(CC)$(CFLAGS)$(OBJS)$(LDFLAGS)$(LIBS) -o$@
1515

16-
pg_crc.c:$(top_builddir)/src/backend/utils/hash/pg_crc.c
16+
pg_crc.c:$(top_srcdir)/src/backend/utils/hash/pg_crc.c
17+
rm -f$@&&$(LN_S)$<.
18+
19+
# this only gets done if configure finds system doesn't have snprintf()
20+
snprintf.c:$(top_srcdir)/src/backend/port/snprintf.c
1721
rm -f$@&&$(LN_S)$<.
1822

1923
install: all installdirs
@@ -27,7 +31,7 @@ uninstall:
2731
rm -f$(bindir)/pg_controldata$(X)$(docdir)/contrib/README.pg_controldata
2832

2933
cleandistcleanmaintainer-clean:
30-
rm -f pg_controldata$(X)$(OBJS) pg_crc.c
34+
rm -f pg_controldata$(X)$(OBJS) pg_crc.c snprintf.c
3135

3236
dependdep:
3337
$(CC) -MM -MG$(CFLAGS)*.c> depend

‎contrib/pg_resetxlog/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
#
2-
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.1 2001/03/14 00:57:43 tgl Exp $
2+
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.2 2001/04/03 19:01:57 tgl Exp $
33
#
44

55
subdir = contrib/pg_resetxlog
66
top_builddir = ../..
77
include$(top_builddir)/src/Makefile.global
88

9-
OBJS= pg_resetxlog.o pg_crc.o
9+
OBJS= pg_resetxlog.o pg_crc.o$(SNPRINTF)
1010

1111
all: pg_resetxlog
1212

1313
pg_resetxlog:$(OBJS)
1414
$(CC)$(CFLAGS)$(OBJS)$(LDFLAGS)$(LIBS) -o$@
1515

16-
pg_crc.c:$(top_builddir)/src/backend/utils/hash/pg_crc.c
16+
pg_crc.c:$(top_srcdir)/src/backend/utils/hash/pg_crc.c
17+
rm -f$@&&$(LN_S)$<.
18+
19+
# this only gets done if configure finds system doesn't have snprintf()
20+
snprintf.c:$(top_srcdir)/src/backend/port/snprintf.c
1721
rm -f$@&&$(LN_S)$<.
1822

1923
install: all installdirs
@@ -27,7 +31,7 @@ uninstall:
2731
rm -f$(bindir)/pg_resetxlog$(X)$(docdir)/contrib/README.pg_resetxlog
2832

2933
cleandistcleanmaintainer-clean:
30-
rm -f pg_resetxlog$(X)$(OBJS) pg_crc.c
34+
rm -f pg_resetxlog$(X)$(OBJS) pg_crc.c snprintf.c
3135

3236
dependdep:
3337
$(CC) -MM -MG$(CFLAGS)*.c> depend

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp