diff options
| author | Peter Eisentraut | 2000-10-22 22:15:13 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-10-22 22:15:13 +0000 |
| commit | fba790ad586727c54d0ed12f3c9679f9533d2c6f (patch) | |
| tree | da276b3f07b84f41cf4e8ecd3a589ee4ccb87763 /src/backend/libpq | |
| parent | 3c5d000749131f32bd77bae30add25035c1fd070 (diff) | |
Makeover for Unixware 7.1.1
* Makefile: Add more standard targets. Improve shell redirection in GNU
make detection.
* src/backend/access/transam/rmgr.c: Fix incorrect(?) C.
* src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug.
* src/include/port/unixware.h: ...with help from here.
* src/backend/nodes/print.c (plannode_type): Remove some "break"s after
"return"s.
* src/backend/tcop/dest.c (DestToFunction): ditto.
* src/backend/nodes/readfuncs.c: Add proper prototypes.
* src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol()
setting EINVAL. This saves us from creating an extra set of regression test
output for the affected systems.
* src/include/storage/s_lock.h (tas): Correct prototype.
* src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable
as dimension in array definition.
* src/makefiles/Makefile.unixware: Add support for GCC.
* src/template/unixware: same here
* src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace.
* src/test/regress/expected/horology-solaris-1947.out: Part of this file
was evidently missing.
* src/test/regress/pg_regress.sh: Fix shell. mkdir -p returns non-zero if
the directory exists.
* src/test/regress/resultmap: Add entries for Unixware.
Diffstat (limited to 'src/backend/libpq')
| -rw-r--r-- | src/backend/libpq/pqcomm.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 5cae5b63c7a..1a051db623d 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -29,7 +29,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.c,v 1.106 2000/10/14 23:56:58 momjian Exp $ + * $Id: pqcomm.c,v 1.107 2000/10/22 22:14:54 petere Exp $ * *------------------------------------------------------------------------- */ @@ -332,6 +332,15 @@ StreamConnection(int server_fd, Port *port) return STATUS_ERROR; } +#ifdef PG_ON_UNIXWARE + /* + * Only UnixWare 7+ are known to have this bug, but it shouldn't + * hurt it catch if for all of them. + */ + if (port->raddr.sa.sa_family == 0) + port->raddr.sa.sa_family = AF_UNIX; +#endif + /* fill in the server (local) address */ addrlen = sizeof(port->laddr); if (getsockname(port->sock, (struct sockaddr *) & port->laddr, |
