diff options
| author | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-26 03:20:35 +0000 |
|---|---|---|
| committer | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-26 03:20:35 +0000 |
| commit | 46d58fba3309d435bca93b1706603d1bab5a0512 (patch) | |
| tree | d62f05b82b87ea98d9f2cb9fc56c390ad0a449c5 /src/bin | |
| parent | 02c0eb65490c3f5068cdc4839ef516278b8deacc (diff) | |
| download | postgresql-46d58fba3309d435bca93b1706603d1bab5a0512.tar.gz | |
Make it compile on Ultrix. Thanks Erik Bertelson.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg4_dump/Makefile | 2 | ||||
| -rw-r--r-- | src/bin/pg4_dump/common.c | 1 | ||||
| -rw-r--r-- | src/bin/pg4_dump/pg4_dump.c | 1 | ||||
| -rw-r--r-- | src/bin/pg_dump/Makefile | 4 | ||||
| -rw-r--r-- | src/bin/pg_dump/common.c | 3 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 3 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_dump.h | 3 | ||||
| -rw-r--r-- | src/bin/psql/Makefile | 5 | ||||
| -rw-r--r-- | src/bin/psql/psql.c | 4 | ||||
| -rw-r--r-- | src/bin/psql/stringutils.c | 5 | ||||
| -rw-r--r-- | src/bin/psql/stringutils.h | 7 |
11 files changed, 21 insertions, 17 deletions
diff --git a/src/bin/pg4_dump/Makefile b/src/bin/pg4_dump/Makefile index 286f96ea29..74136f2de7 100644 --- a/src/bin/pg4_dump/Makefile +++ b/src/bin/pg4_dump/Makefile @@ -4,7 +4,7 @@ .include <postgres.global.mk> -CFLAGS+= -I${.CURDIR}/../../backend/tmp +CFLAGS+= -I${.CURDIR}/../../backend/tmp -I${.CURDIR}/../../backend/port/${PORTNAME} PROG= pg4_dump diff --git a/src/bin/pg4_dump/common.c b/src/bin/pg4_dump/common.c index caa941b571..408a4a7fe6 100644 --- a/src/bin/pg4_dump/common.c +++ b/src/bin/pg4_dump/common.c @@ -23,6 +23,7 @@ #include "postgres.h" #include "libpq-fe.h" #include "libpq/auth.h" +#include <port-protos.h> /* for strdup () *( #include "pg_dump.h" diff --git a/src/bin/pg4_dump/pg4_dump.c b/src/bin/pg4_dump/pg4_dump.c index 6f484d48c6..dad51dc9d6 100644 --- a/src/bin/pg4_dump/pg4_dump.c +++ b/src/bin/pg4_dump/pg4_dump.c @@ -36,6 +36,7 @@ #include "tmp/postgres.h" #include "tmp/libpq-fe.h" #include "libpq/auth.h" +#include <port-protos.h> /* for strdup () */ #include "pg_dump.h" diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile index 9028cd4fb4..8faf2235c7 100644 --- a/src/bin/pg_dump/Makefile +++ b/src/bin/pg_dump/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.8 1996/11/12 06:10:37 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.9 1996/11/26 03:19:36 bryanh Exp $ # #------------------------------------------------------------------------- @@ -15,6 +15,8 @@ SRCDIR= ../.. include ../Makefile.global include ../../Makefile.global +CFLAGS+= -I../../backend/port/${PORTNAME} + OBJS= pg_dump.o common.o all: submake pg_dump diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index ac03f9e2e1..c5c750f0d7 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.7 1996/11/04 03:59:53 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.8 1996/11/26 03:19:40 bryanh Exp $ * * Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2 * @@ -29,6 +29,7 @@ #include "postgres.h" #include "libpq-fe.h" +#include <port-protos.h> /* for strdup() */ #include "pg_dump.h" diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 1a52c41457..28eba53580 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -20,7 +20,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.16 1996/11/20 22:32:55 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.17 1996/11/26 03:19:45 bryanh Exp $ * * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * @@ -54,6 +54,7 @@ #include "postgres.h" #include "access/htup.h" #include "libpq-fe.h" +#include <port-protos.h> /* for strdup() */ #include "pg_dump.h" diff --git a/src/bin/pg_dump/pg_dump.h b/src/bin/pg_dump/pg_dump.h index 2db57cb7f6..d6d5c301eb 100644 --- a/src/bin/pg_dump/pg_dump.h +++ b/src/bin/pg_dump/pg_dump.h @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_dump.h,v 1.7 1996/10/07 03:30:40 scrappy Exp $ + * $Id: pg_dump.h,v 1.8 1996/11/26 03:19:49 bryanh Exp $ * * Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2 * @@ -158,7 +158,6 @@ extern void flagInhAttrs(TableInfo* tbinfo, int numTables, InhInfo* inhinfo, int numInherits); extern void check_conn_and_db(void); -extern char* dupstr(const char *s); extern int strInArray(const char* pattern, char** arr, int arr_size); extern void parseArgTypes(char **argtypes, const char* str); extern int isArchiveName(const char*); diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index c0a8ff9afc..30c3b229bc 100644 --- a/src/bin/psql/Makefile +++ b/src/bin/psql/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.13 1996/11/13 10:35:26 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.14 1996/11/26 03:19:54 bryanh Exp $ # #------------------------------------------------------------------------- @@ -16,7 +16,8 @@ include ../../Makefile.global INCLUDE_OPT:= \ -I$(LIBPQDIR) \ - -I../../include + -I../../include \ + -I../../backend/port/$(PORTNAME) CFLAGS+= $(INCLUDE_OPT) # diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 5d0ce15fe3..8202d6db7b 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.33 1996/11/24 04:44:24 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.34 1996/11/26 03:19:58 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -23,8 +23,8 @@ #include "postgres.h" #include "libpq-fe.h" #include "stringutils.h" - #include "psqlHelp.h" +#include <port-protos.h> /* for strdup() */ #ifdef NOREADLINE #include "rlstubs.h" diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c index 870bfdefe0..5d209ec859 100644 --- a/src/bin/psql/stringutils.c +++ b/src/bin/psql/stringutils.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.5 1996/11/14 16:08:05 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.6 1996/11/26 03:20:06 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,9 @@ #include <string.h> #include <ctype.h> #include <stdlib.h> + +#include <port-protos.h> /* for strdup() */ + #include "stringutils.h" /* all routines assume null-terminated strings! */ diff --git a/src/bin/psql/stringutils.h b/src/bin/psql/stringutils.h index f5140469d6..11da94449e 100644 --- a/src/bin/psql/stringutils.h +++ b/src/bin/psql/stringutils.h @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: stringutils.h,v 1.2 1996/07/28 07:08:15 scrappy Exp $ + * $Id: stringutils.h,v 1.3 1996/11/26 03:20:08 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -31,11 +31,6 @@ extern char *leftTrim(char *s); extern char *rightTrim(char *s); extern char *doubleTrim(char *s); -/* dupstr : copies a string, while making room for it */ -/* the CALLER is responsible for freeing the space */ -/* returns NULL if the argument is NULL */ -extern char *dupstr(char *s); - #ifdef STRINGUTILS_TEST extern void testStringUtils(); #endif |
