aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-03-23 05:46:05 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-03-23 05:46:05 +0000
commit40f158da486ef52d755b29b62cbfd211409065d9 (patch)
tree9cd554825d8d8cd6c927959599dc6ba9cb596381 /src
parent7cf952e7b4ad4d0d603ad13ab91f55c3ec41affe (diff)
downloadpostgresql-40f158da486ef52d755b29b62cbfd211409065d9.tar.gz
postgresql-40f158da486ef52d755b29b62cbfd211409065d9.zip
Add checking for strtoul. SunOS4 does not have it.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_encoding/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/pg_encoding/Makefile b/src/bin/pg_encoding/Makefile
index 63a065c3fed..94d3e08c5ae 100644
--- a/src/bin/pg_encoding/Makefile
+++ b/src/bin/pg_encoding/Makefile
@@ -4,7 +4,7 @@
#
# Copyright (c) 1998, PostgreSQL Global Development Group
#
-# $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.13 2001/02/20 19:20:28 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.14 2001/03/23 05:46:05 ishii Exp $
#
#-------------------------------------------------------------------------
@@ -16,6 +16,13 @@ OBJS= pg_encoding.o
all: submake pg_encoding
+ifdef STRTOUL
+OBJS+=$(top_builddir)/src/backend/port/strtoul.o
+
+$(top_builddir)/src/backend/port/strtoul.o:
+ $(MAKE) -C $(top_builddir)/src/backend/port strtoul.o
+endif
+
pg_encoding: $(OBJS)
$(CC) $(CFLAGS) $^ $(libpq) $(LDFLAGS) $(LIBS) -o $@