1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-19 13:42:17 +03:00

Make it compile on Ultrix. Thanks Erik Bertelson.

This commit is contained in:
Bryan Henderson
1996-11-26 03:20:35 +00:00
parent 02c0eb6549
commit 46d58fba33
25 changed files with 66 additions and 36 deletions

View File

@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.18 1996/11/17 19:27:38 momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.19 1996/11/26 03:20:33 bryanh Exp $
#
#-------------------------------------------------------------------------
@@ -15,7 +15,7 @@ SRCDIR= ..
include ../Makefile.global
# We need the backend directory here for its fmgr.h
INCLUDE_OPT= -I../include -I../backend
INCLUDE_OPT= -I../include -I../backend -I../backend/port/$(PORTNAME)
CFLAGS+= $(INCLUDE_OPT)
@@ -73,7 +73,7 @@ postgres.h: ../include/postgres.h
echo "#define NAMEDATALEN $(NAMEDATALEN)" >> postgres.h
echo "#define OIDNAMELEN $(OIDNAMELEN)" >> postgres.h
cat ../include/postgres.h >> postgres.h
c.h: ../include/c.h
rm -f c.h
echo "#undef PORTNAME" > c.h

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.19 1996/11/14 10:25:50 bryanh Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.20 1996/11/26 03:20:35 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -30,11 +30,12 @@
#include "fe-auth.h"
#include "libpq-fe.h"
#include <port-protos.h> /* for strdup() */
#if defined(ultrix4) || defined(next)
/* ultrix is lame and doesn't have strdup in libc for some reason */
/* [TRH] So doesn't NEXTSTEP. But whaddaya expect for a non-ANSI
standard function? (My, my. Touchy today, are we?) */
static
char *
strdup(const char *string)
{