mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Make it compile on Ultrix. Thanks Erik Bertelson.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
# be converted to Method 2.
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.4 1996/11/10 03:13:27 bryanh Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.5 1996/11/26 03:18:38 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -36,6 +36,11 @@ ifeq ($(PORTNAME), sparc_solaris)
|
||||
OBJS += inet_aton.o
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), ultrix4)
|
||||
# Other ports get the inet_aton() function from their standard C libraries.
|
||||
OBJS += inet_aton.o
|
||||
endif
|
||||
|
||||
all: submake SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <ctype.h>
|
||||
#include "inet_aton.h"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: dl.h,v 1.2 1996/11/14 20:08:57 scrappy Exp $
|
||||
* $Id: dl.h,v 1.3 1996/11/26 03:18:46 bryanh Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -34,6 +34,7 @@
|
||||
#ifndef _DL_HEADER_
|
||||
#define _DL_HEADER_
|
||||
|
||||
#include <stdio.h> /* needed to declare FILE for ldfcn.h */
|
||||
#include <filehdr.h>
|
||||
#include <syms.h>
|
||||
#include <ldfcn.h>
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/dynloader.c,v 1.2 1996/11/14 20:08:58 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/dynloader.c,v 1.3 1996/11/26 03:18:50 bryanh Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <postgres.h>
|
||||
#include "dl.h"
|
||||
#include <utils/dynamic_loader.h>
|
||||
#include "c.h"
|
||||
#include "fmgr.h"
|
||||
#include "port-protos.h"
|
||||
|
||||
@@ -6,16 +6,13 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: port-protos.h,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
|
||||
* $Id: port-protos.h,v 1.2 1996/11/26 03:18:58 bryanh Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PORT_PORTOS_H
|
||||
#define PORT_PORTOS_H
|
||||
|
||||
#include "utils/dynamic_loader.h"
|
||||
#include "dl.h"
|
||||
|
||||
/* dynloader.c */
|
||||
/*
|
||||
* New dynamic loader.
|
||||
@@ -33,4 +30,7 @@
|
||||
|
||||
extern void init_address_fixup(void);
|
||||
|
||||
/* strdup.c: strdup() is not part of libc on Ultrix */
|
||||
extern char* strdup(char const*);
|
||||
|
||||
#endif /* PORT_PORTOS_H */
|
||||
|
||||
@@ -7,14 +7,18 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/strdup.c,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/strdup.c,v 1.2 1996/11/26 03:19:04 bryanh Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
#include <utils/palloc.h>
|
||||
|
||||
#include "port-protos.h"
|
||||
|
||||
char *
|
||||
strdup(char *string)
|
||||
strdup(char const *string)
|
||||
{
|
||||
char *nstr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user