1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +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

@@ -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>

View File

@@ -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"

View File

@@ -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 */

View File

@@ -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;