BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c

From: "" <agattik(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c
Date: 2006-01-24 03:23:43
Message-ID: 20060124032343.B3341F0A2F@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2205
Logged by:
Email address: agattik(at)gmail(dot)com
PostgreSQL version: 8.1.2
Operating system: alphaev68-dec-osf5.1a
Description: Compilation error on Tru64: socklen_t in pqcomm.c
Details:

pqcomm.c: In function `pq_getkeepalivesidle':
pqcomm.c:1186: `socklen_t' undeclared (first use in this function)
pqcomm.c:1186: (Each undeclared identifier is reported only once
pqcomm.c:1186: for each function it appears in.)
pqcomm.c:1186: parse error before "size"
pqcomm.c:1190: `size' undeclared (first use in this function)
pqcomm.c: In function `pq_getkeepalivesinterval':
pqcomm.c:1258: `socklen_t' undeclared (first use in this function)
pqcomm.c:1258: parse error before "size"
pqcomm.c:1262: `size' undeclared (first use in this function)
pqcomm.c: In function `pq_getkeepalivescount':
pqcomm.c:1330: `socklen_t' undeclared (first use in this function)
pqcomm.c:1330: parse error before "size"

/usr/include/sys/socket.h contains:

/*
* This data type is needed for both UNIX98 and POSIX support.
*/
#if (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE>=500)) || \
defined(_POSIX_PII_SOCKET)
typedef unsigned long socklen_t; /* 64-bits */
#endif

No ./configure options given except --prefix.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Reece Hart 2006-01-24 04:08:38 Re: BUG #2178: NOT IN command don't work
Previous Message 金龙(Robbie.Xu 2006-01-24 02:44:14 a question from robbie