1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

More stuff to make it compile on various ports.

This commit is contained in:
Bryan Henderson
1996-11-27 08:16:44 +00:00
parent a38365e0eb
commit 9c0afeabb7
15 changed files with 116 additions and 75 deletions

View File

@@ -6,7 +6,7 @@
*
* 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/27 08:15:23 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -14,6 +14,8 @@
#define PORT_PROTOS_H
#include <dlfcn.h>
#include "config.h" /* For MAXPATHLEN */
#include "fmgr.h" /* for func_ptr */
#include "utils/dynamic_loader.h"
@@ -35,4 +37,11 @@
extern long random(void);
extern void srandom(int seed);
/* inet_aton.c in backend/port directory */
extern int inet_aton(const char *cp, struct in_addr *addr);
/* In system library, but can't find prototype in system library .h files */
extern int gethostname(char *name, int namelen);
#endif /* PORT_PROTOS_H */

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.2 1996/11/06 06:48:35 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.3 1996/11/27 08:15:25 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -15,6 +15,9 @@
#include <stdlib.h>
#include <errno.h>
#include "postgres.h"
#include "port-protos.h"
#include "rusagestub.h"
long

View File

@@ -6,13 +6,20 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: port-protos.h,v 1.2 1996/11/26 03:18:58 bryanh Exp $
* $Id: port-protos.h,v 1.3 1996/11/27 08:15:30 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PORT_PORTOS_H
#define PORT_PORTOS_H
/*
* Externals in libc that need prototypes (or at least declarations)
*/
extern char *ecvt(double, int, int*, int*);
extern char *fcvt(double, int, int*, int*);
/* dynloader.c */
/*
* New dynamic loader.