Marc G. Fournier
c629d3b9d6
need to include postgres.h before HAVE_DLD_H
...
need to include string.h for strdup()
From: Bryan Henderson <bryanh@giraffe-data.com>
1998-01-02 03:40:04 +00:00
Thomas G. Lockhart
8e3ccad128
Test for __ELF__ rather than LINUX_ELF in headers.
...
Comment-out dynamic link function declarations since they are all
provided by the system.
Should we bother continuing to support non-elf Linux systems??
1998-01-01 06:02:04 +00:00
Marc G. Fournier
d82f2f1f93
Change @RANDOM@ to @MISSING_RANDOM@ because of bash
1997-12-30 04:08:55 +00:00
Marc G. Fournier
1783963cab
Move more to dynloader subdir
1997-12-20 04:48:11 +00:00
Marc G. Fournier
44be631dd8
Make sure distclean works as well as clean
1997-12-20 04:43:20 +00:00
Marc G. Fournier
9a60a20f99
fix so that dynloader.h is included instead of port-protos.h
1997-12-20 04:13:31 +00:00
Marc G. Fournier
a38bd20b83
Fix use of variable in Makefile.in
1997-12-20 04:10:35 +00:00
Marc G. Fournier
1d5cd311d1
Oops, forgot to add what I took away
1997-12-20 03:38:20 +00:00
Marc G. Fournier
e3a18f6f50
More cleanups...
1997-12-20 03:36:35 +00:00
Marc G. Fournier
722fa83f05
More ports switched over
1997-12-20 03:23:46 +00:00
Marc G. Fournier
b5466f8669
Move over the BSDi port files
1997-12-20 03:13:59 +00:00
Marc G. Fournier
a0bc7aa74c
This should get the linux port to work...
1997-12-20 02:36:26 +00:00
Marc G. Fournier
6e337eef45
Major cleanout of PORTNAME variables from Makefiles...bound to screw up
...
some of the ports...
1997-12-20 00:29:35 +00:00
Marc G. Fournier
10ff1eea60
First clean compile without a "PORTNAME" variable being set...
1997-12-20 00:11:13 +00:00
Marc G. Fournier
93e74460a9
removed the port-protos.h from bsd a little too quick...remedied now
1997-12-19 23:17:42 +00:00
Marc G. Fournier
153558dff8
These files will get link'd to 'dynloader.[ch]', from configure, which
...
will then get link'd into SUBSYS.o
1997-12-19 22:58:27 +00:00
Marc G. Fournier
56a7d9fac2
More removal of port dependent stuff
1997-12-19 22:56:03 +00:00
Marc G. Fournier
903e21b451
More cleanups. Move alot of the prototype definitions straight into
...
config.h, right beside their appropriate HAVE_ #ifdefs...one central
location that is included everywhere...
1997-12-19 22:47:00 +00:00
Marc G. Fournier
c6bd6860d7
More cleanups...only need one rusagestub.h
1997-12-19 13:35:17 +00:00
Marc G. Fournier
5acf432ddb
remove port from OBJS line...
1997-12-19 13:28:06 +00:00
Marc G. Fournier
2b4db36c00
Okay, that's it for tonight...broke a few ports, most likely, but that
...
is expected...a few ports don't have "ports" anymore, with most things
auto-configured by configure like it should be :)
1997-12-19 03:06:22 +00:00
Marc G. Fournier
70718dc25a
More cleanups
1997-12-19 02:56:35 +00:00
Marc G. Fournier
3aae0f5300
More cleanups...several ports are major redundancies of other ports
1997-12-19 02:46:25 +00:00
Marc G. Fournier
3ad815fc2a
port.c no longer required...individual functions that were in there are
...
auto-generated via configure
individual functions in individual files
1997-12-19 02:27:20 +00:00
Marc G. Fournier
5379b84eff
More cleanups. I can now compile without PORTNAME being defined n
...
Makefile.global.
End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port". Most, if not everything,
*should* be determined by configure, or by the compiler itself. Still
work to be done though :)
1997-12-19 02:09:10 +00:00
Bruce Momjian
868859b7e3
AIX patch from Darren King.
1997-10-30 03:37:28 +00:00
Bruce Momjian
9939e55513
Remove strcasecmp for univel.
1997-10-30 03:28:18 +00:00
Bruce Momjian
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Bruce Momjian
38d2ca5418
AIx patch from Frank Dana.
1997-09-23 17:43:33 +00:00
Marc G. Fournier
220941dac5
Add in srandom() check to configure
...
Add appropriate HAVE_{RANDOM,SRANDOM} values to config.h
Add approrpiate #ifdef's to sparc_solaris port files for Solaris v2.6
1997-09-18 16:09:41 +00:00
Bruce Momjian
0829d2dba8
Remove uint32 from inet_aton file.
1997-09-16 16:09:59 +00:00
Bruce Momjian
90bcec36c1
To find uint32 on AIX.
1997-09-14 04:06:20 +00:00
Bruce Momjian
1d0085e47a
Dec alphaserver patch from Malcolm Beattie
1997-09-12 22:22:12 +00:00
Bruce Momjian
319dbfa736
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
1997-09-08 02:41:22 +00:00
Bruce Momjian
1ccd423235
Massive commit to run PGINDENT on all *.c and *.h files.
1997-09-07 05:04:48 +00:00
Bruce Momjian
f1edf02cc1
Change pg_attribute.attnvals to float4, change #ifdef 0 to #if 0, fix aix call to strNcpy, fix pg_super_user_id in pg_dumpall, change pg_database.dtadba from oid to int4.
1997-08-21 02:28:55 +00:00
Bruce Momjian
ea5b5357cd
Remove more (void) and fix -Wall warnings.
1997-08-12 22:55:25 +00:00
Bruce Momjian
edb58721b8
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
1997-08-12 20:16:25 +00:00
Bruce Momjian
8338f90d4e
Add SCO files.
1997-07-28 01:34:24 +00:00
Bruce Momjian
cfd15d16fa
Rename sparc to sunos4 directory. Was misnamed.
1997-07-28 00:08:41 +00:00
Bruce Momjian
d5e21e0924
HPUX 10 patches from Vladimir Turin
1997-07-27 18:52:43 +00:00
Bruce Momjian
69e5d63839
AIX nm fix from Gerhard
1997-07-13 19:52:10 +00:00
Bruce Momjian
a11ad874e4
Fix for assembler from Yoshihiko ICHIKAWA
1997-07-10 02:32:51 +00:00
Marc G. Fournier
24ed6d604d
From: Darren King <aixssd!darrenk@abs.net>
...
Subject: [PATCHES] AIX make patch resubmitted.
Misc patches for AIX from Darren:
1) New src/makefiles/Makefile.aix This patch should only be
applied if the following patch (4) is applied to backend/Makefile!
Still looking into having configure determine the last line to do
the shared link. The 325 code will work for 41, so I put that in
as the default. Included a commented out 41 line for completeness.
*and*
4) Patch the backend Makefile. I've reviewed this patch with respect to the
other ports that use MAKE_EXPORTS (svr4 and univel) as closely as I could
and I don't see where it will break them. If it does, please let me know
and I'll rework it somehow.
1997-05-22 00:11:29 +00:00
Bruce Momjian
a1157deb57
Added fcvt() prot for bsdi.
...
Made PQsetdb() and PQfnumber() case-insensitive.
Removed attempt to set table ownership via pg_dumpall.
1997-05-20 03:39:02 +00:00
Marc G. Fournier
5dcc9bef6e
Patch for Solaris 2.5 from: adrian@waltham.harvard.net
1997-04-15 18:18:45 +00:00
Marc G. Fournier
6fd4e2b414
Various minor HP related patches from:
...
Morten Kjeldgaard <mok@monster.kemi.aau.dk>
1997-04-15 17:55:37 +00:00
Marc G. Fournier
88d740462f
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
...
Subject: [HACKERS] Money integration patches
Here are patches to integrate the money data type. I have included
some math and aggregate functions and have made the locale support optional
by #ifdef USE_LOCALE bracketing of functions.
Modules affected are:
builtins.h.patch
cash.c.patch
cash.h.patch
main.c.patch
pg_aggregate.h.patch
pg_operator.h.patch
pg_proc.h.patch
pg_type.h.patch
I changed the data type to be pass-by-reference rather than by-value
to pave the way for a larger internal representation (64-bit ints?).
Also, I changed the tabbing of cash.c and cash.h to match most of
the other Postgres source code files (4 space indent, 8 spaces == 1 tab).
The locale stuff should be tested under another convention (Russian?)
but I don't know what the correct results should be so perhaps someone
else can give them a try. Will update docs and regression tests in
the next few days.
1997-04-15 17:41:44 +00:00
Marc G. Fournier
164cd7ab34
removed as already installed as part of system headers on NetBSD/FreeBSD
1997-04-02 18:49:24 +00:00
Marc G. Fournier
d2a386d6e3
MOre univel port patches/files from:
...
"Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
1997-03-25 07:54:53 +00:00
Marc G. Fournier
7acd9a3609
remove a double declaration/prototype
1997-03-19 03:56:50 +00:00
Marc G. Fournier
861cfd686d
Remove port.c since it is redundant (well, empty, at least)
...
Change Makefile to refl removal of portc
Change dynloader.c so that its only used if PRE_BSDI_2_1 is defined
1997-03-19 03:01:32 +00:00
Marc G. Fournier
6ffd26d8eb
Add a check for strerr, and add in D'Arcy's strerror() code in case not
...
found
1997-03-19 02:37:42 +00:00
Marc G. Fournier
da9dcf826b
there, that's fixed
1997-03-19 02:13:27 +00:00
Marc G. Fournier
8411931a59
Fixing a screw up
1997-03-19 02:12:15 +00:00
Marc G. Fournier
f749fe4934
Last of Dan's hidden tar balls :)
1997-03-14 06:01:40 +00:00
Bruce Momjian
fc87230507
Remove SUBSYS.o in port/ on clean.
1997-02-28 10:57:47 +00:00
Bruce Momjian
317ea8bf39
Remove win32 port directory. Forgot to do it earlier.
1997-02-28 10:30:29 +00:00
Marc G. Fournier
d62267c707
Improvements to the ultrix port, in particular a bunch of compiler
...
quieting prototyping in port/ultrix4.h
Submitted by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1997-02-13 09:54:14 +00:00
Marc G. Fournier
86c28441b4
Remove machine.h, since it wasn't doing anything that config.h wasn't
...
already doing
Removed only reference to a machine.h I could find in c.h, to win32/machine.h
1997-02-09 04:50:25 +00:00
Marc G. Fournier
2c9dbc57e5
Various changes to improve/support Mklinux
...
Submitted by: Tatsuo Ishii
1997-02-06 08:40:16 +00:00
Marc G. Fournier
b78a3de9a1
Get in there...
1997-02-05 21:27:04 +00:00
Marc G. Fournier
50b618a049
Test for existence of inet_aton on the system, and only include inet_aton.c if
...
required
Pointed out by Brian E. Gallew
1997-02-04 22:36:30 +00:00
Bruce Momjian
197c7f5486
More removals for next/nextstep. Fix IPC lib for them.
1997-01-26 20:22:33 +00:00
Marc G. Fournier
b1fd1f6998
remove asm/bitops.h, as its causing more problems then it fixes.
1997-01-25 19:22:27 +00:00
Marc G. Fournier
0a16069901
Convert NEED_{RINT,CBRT,ISINF} to HAVE_* in prepration for configure...
1997-01-24 18:17:37 +00:00
Marc G. Fournier
e1e8301cdf
Small fixes for SVR4 port by Frank Ridderbusch
1997-01-23 15:58:34 +00:00
Marc G. Fournier
0aa4cfca5d
the i386_solaris port requires inet_aton.o
...
Pointed out by Mark Wahl
1997-01-22 04:15:53 +00:00
Bryan Henderson
9e41af2e74
Add inet_aton() prototype.
1997-01-16 06:32:17 +00:00
Bruce Momjian
ed3db60321
Fix typo in findstring use.
1997-01-13 16:47:52 +00:00
Bryan Henderson
6ece8a8d0b
Part of patch to make a working nextstep port.
1997-01-13 03:54:48 +00:00
Bryan Henderson
2de3d96f69
Add nextstep port, courtesy of Ovidiu Predescu.
1997-01-13 01:26:29 +00:00
Marc G. Fournier
8ec5bd06b7
Add NeXT port submitted by: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
1997-01-06 00:12:34 +00:00
Marc G. Fournier
3bfbe9a7fd
Fixes:
...
First, this is because of dlopen() and dlsym() having a char *
in the system prototype.
Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
1997-01-05 23:43:58 +00:00
Marc G. Fournier
d57d3626cb
Just reviewed what I changed as far a dlopen/etc are concerned, and determined
...
that the "fix" is wrong...
1997-01-05 23:41:43 +00:00
Marc G. Fournier
4f8db3eb4c
FreeBSD doesn't require the dl{open,close,sym,error} functions, as they are
...
already included in the system libraries.
Used if !defined(__FreeBSD__) to single FreeBSD out from the other BSD44
derived OSs
1997-01-03 04:59:01 +00:00
Bruce Momjian
cb6cb7745d
Here's the final set of patches to 6.0 (sup'd on 27/12/96) that allow a full
...
gmake of the code without interruption.
There's also some tidy-up of the MAXPATHLEN stuff based on the assumption that
all supported platforms have MAXPATHLEN defined in <sys/param.h>.
(The only unknowns for the above are AIX and IRIX5.)
1996-12-28 02:13:05 +00:00
Bryan Henderson
9fc7250d3a
Make compile on AIX, Alpha OSF. Thanks Darren King, Igor Notanzon.
1996-12-15 09:05:53 +00:00
Bruce Momjian
316e81cf22
Fix for BSDI compile.
1996-11-29 04:49:46 +00:00
Bryan Henderson
9c0afeabb7
More stuff to make it compile on various ports.
1996-11-27 08:16:44 +00:00
Bryan Henderson
46d58fba33
Make it compile on Ultrix. Thanks Erik Bertelson.
1996-11-26 03:20:35 +00:00
Bryan Henderson
bd57c3afe5
Quiet compiler warnings about missing prototypes in Linux's bitops.h.
1996-11-18 01:45:44 +00:00
Marc G. Fournier
2081153e69
Fix a comment...was going to fix the <sys/types.h> problem, but
...
Randy is submitting a more comprehensive patch :)
1996-11-14 20:27:06 +00:00
Marc G. Fournier
d84057db71
Couple of Ultrix4 related patches submited by:
...
Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:08:58 +00:00
Bryan Henderson
f64b840387
Remove most compile-time options, add a few runtime options to make up for it.
...
In particular, no more compiled-in default for PGDATA or LIBDIR. Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
1996-11-14 10:25:54 +00:00
Bryan Henderson
08029facb3
Recognize dependencies more reliably.
1996-11-10 03:13:59 +00:00
Bryan Henderson
d7806dc5ee
Make it find inet_aton.h so backend compiles on Solaris.
1996-11-10 00:38:38 +00:00
Bruce Momjian
a0990e1884
Makefile cleanup after reorganization
1996-11-09 06:24:51 +00:00
Bruce Momjian
4b2b8592a0
Compile and warning cleanup
1996-11-08 06:02:30 +00:00
Marc G. Fournier
ce4c0ce1de
Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>
1996-11-06 06:52:23 +00:00
Bruce Momjian
dd10d0de23
More chanes for bsdi_2_1 removal
1996-11-01 03:36:16 +00:00
Bruce Momjian
3a4c2888a1
Removal of bsdi_2_1 port.
1996-11-01 01:47:23 +00:00
Bruce Momjian
3ce9ccff7c
Fix for gmake clean.
1996-10-31 17:27:58 +00:00
Marc G. Fournier
b17c49e95d
Add #include "postgres.h"
1996-10-31 11:09:44 +00:00
Bryan Henderson
b13ffd34b3
Add our own copy of inet_aton() for sparc_solaris, which doesn't have it in
...
the standard C library.
1996-10-28 09:00:54 +00:00
Bryan Henderson
b0d6f0aa63
Simplify make files, add full dependencies.
1996-10-27 09:55:05 +00:00
Marc G. Fournier
f36b2560a4
Major code cleanups from D'arcy (-Wall -Werror)
1996-10-23 07:42:13 +00:00
Marc G. Fournier
5eee45ea05
Add HAVE_Cplusplus= true to BSD44_derived Makefile.inc, as I know that
...
FreeBSD/NetBSD both ship with gcc 2.7.x
1996-10-19 06:36:52 +00:00
Marc G. Fournier
2d8ffead24
Moved all the CFLAG -D's from the makefiles to config.h towards better
...
centralized configurations/porting...
1996-10-18 04:49:09 +00:00
Marc G. Fournier
d16bc9ce37
Centralize more of the defines from backend/port under config.h
...
Further ports should *really* avoid backend/port and make use of
config.h
1996-10-18 00:33:41 +00:00