Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c0afea

Browse files
author
Bryan Henderson
committed
More stuff to make it compile on various ports.
1 parenta38365e commit9c0afea

File tree

15 files changed

+112
-71
lines changed

15 files changed

+112
-71
lines changed

‎src/Makefile.global

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.74 1996/11/23 09:50:34 bryanh Exp $
10+
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.75 1996/11/27 08:13:44 bryanh Exp $
1111
#
1212
# NOTES
1313
# Essentially all Postgres make files include this file and use the
@@ -606,7 +606,7 @@ ifeq ($(PORTNAME), sparc_solaris)
606606
# cc won't work!
607607
CC= gcc
608608

609-
LDADD_BE= -ll -ldl
609+
LDADD_BE= -lsocket -lnsl -ll -ldl
610610

611611
# RANLIB is not used on solaris
612612
RANLIB= touch

‎src/backend/libpq/hba.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.12 1996/11/16 08:09:16 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.13 1996/11/27 08:15:16 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -27,6 +27,7 @@
2727
#include<libpq/libpq.h>
2828
#include<libpq/pqcomm.h>
2929
#include<libpq/hba.h>
30+
#include<port-protos.h>/* For inet_aton() */
3031

3132

3233
#defineCONF_FILE "pg_hba.conf"

‎src/backend/port/sparc_solaris/port-protos.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: port-protos.h,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
9+
* $Id: port-protos.h,v 1.2 1996/11/27 08:15:23 bryanh Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#ifndefPORT_PROTOS_H
1414
#definePORT_PROTOS_H
1515

1616
#include<dlfcn.h>
17+
18+
#include"config.h"/* For MAXPATHLEN */
1719
#include"fmgr.h"/* for func_ptr */
1820
#include"utils/dynamic_loader.h"
1921

@@ -35,4 +37,11 @@
3537
externlongrandom(void);
3638
externvoidsrandom(intseed);
3739

40+
/* inet_aton.c in backend/port directory */
41+
externintinet_aton(constchar*cp,structin_addr*addr);
42+
43+
/* In system library, but can't find prototype in system library .h files */
44+
externintgethostname(char*name,intnamelen);
45+
46+
3847
#endif/* PORT_PROTOS_H */

‎src/backend/port/sparc_solaris/port.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.2 1996/11/06 06:48:35 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.3 1996/11/27 08:15:25 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#include<math.h>/* for pow() prototype */
1515
#include<stdlib.h>
1616

1717
#include<errno.h>
18+
19+
#include"postgres.h"
20+
#include"port-protos.h"
1821
#include"rusagestub.h"
1922

2023
long

‎src/backend/port/ultrix4/port-protos.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: port-protos.h,v 1.2 1996/11/26 03:18:58 bryanh Exp $
9+
* $Id: port-protos.h,v 1.3 1996/11/27 08:15:30 bryanh Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#ifndefPORT_PORTOS_H
1414
#definePORT_PORTOS_H
1515

16+
/*
17+
* Externals in libc that need prototypes (or at least declarations)
18+
*/
19+
20+
externchar*ecvt(double,int,int*,int*);
21+
externchar*fcvt(double,int,int*,int*);
22+
1623
/* dynloader.c */
1724
/*
1825
* New dynamic loader.

‎src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.26 1996/11/24 04:07:00 bryanh Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.27 1996/11/27 08:15:36 bryanh Exp $
1414
*
1515
* NOTES
1616
*
@@ -80,6 +80,7 @@
8080
#include"utils/mcxt.h"
8181
#include"storage/proc.h"
8282
#include"utils/elog.h"
83+
#include"port-protos.h"/* For gethostname() */
8384

8485
#if defined(DBX_VERSION)
8586
# defineFORK() (0)

‎src/backend/storage/ipc/shmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.7 1996/11/2707:20:07 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.8 1996/11/2708:15:44 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -59,7 +59,7 @@
5959
*/
6060
#include<stdio.h>
6161
#include<string.h>
62-
#include<sys/ipc.h>
62+
6363
#include"postgres.h"
6464
#include"storage/ipc.h"
6565
#include"storage/shmem.h"

‎src/backend/utils/adt/numutils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.6 1996/11/06 10:30:58 scrappy Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.7 1996/11/27 08:15:54 bryanh Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -24,6 +24,7 @@
2424
#else
2525
# include<string.h>
2626
#endif
27+
#include<port-protos.h>/* ecvt(), fcvt() */
2728

2829
int32
2930
pg_atoi(char*s,intsize,intc)

‎src/backend/utils/cache/relcache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.5 1996/11/10 03:03:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.6 1996/11/27 08:16:01 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -32,6 +32,7 @@
3232
#include<stdio.h>/* for sprintf() */
3333
#include<errno.h>
3434
#include<sys/file.h>
35+
#include<fcntl.h>
3536
#include<string.h>
3637

3738
#include"postgres.h"

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.3 1996/11/24 04:44:14 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.4 1996/11/27 08:16:07 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -18,6 +18,7 @@
1818

1919
#include"postgres.h"
2020

21+
#include"config.h"/* for MAXPATHLEN */
2122
#include"fmgr.h"/* generated by Gen_fmgrtab.sh */
2223
#include"utils/dynamic_loader.h"
2324
#include"utils/elog.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp