diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-14 23:56:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-14 23:56:59 +0000 |
commit | 0f07d644a3542840d14cd27e39495f0f25755d69 (patch) | |
tree | d73245eef173f8fae7cab09e41d3ed4b17f7c011 /src/interfaces/libpq/fe-connect.c | |
parent | d3902198b444f65345f8fee298381708bc8290bd (diff) | |
download | postgresql-0f07d644a3542840d14cd27e39495f0f25755d69.tar.gz postgresql-0f07d644a3542840d14cd27e39495f0f25755d69.zip |
The configure script fails to find <netinet/tcp.h>.
As a result, backend/libpq/pqcomm.c and interfaces/libpq/fe-connect.c
fail to compile.
The <netinet/tcp.h> header needs to be preceded by <netinet/in.h>, at
least on IRIX, Solaris and AIX. The simple configure test fails.
(That header on Linux is idempotent.)
The basic problem is that <netinet/tcp.h> is a BSD header. The
correct header for TCP internals such as TCP_NODELAY on a UNIX system
is <xti.h>. By UNIX I mean UNIX95 (aka XPG4v2 or SUSv1) or later.
The current UNIX standard (UNIX98 aka SUSv2) is available online at
<http://www.opengroup.org/onlinepubs/7908799/>.
The fix is to add header support for <xti.h> into configure.in and
config.h.in.
The 2 files which conditionally include <netinet/tcp.h> need also to
conditionally include <xti.h>.
Pete Forman
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index fe0d6e3f6c6..f27686a727a 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.137 2000/10/03 19:16:17 petere Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.138 2000/10/14 23:56:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -31,6 +31,9 @@ #include <unistd.h> #include <netdb.h> #include <netinet/in.h> +#ifdef HAVE_XTI_H +# include <xti.h> +#endif #ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> #endif |