aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-12-02 00:26:15 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-12-02 00:26:15 +0000
commit9de156f116125728dc799130135988339467ccc4 (patch)
tree8c7f73f87f604ffc5ac84b9975d8042174ee6026
parent8f9216313ae76f3a9d445fa7354218cd2131234f (diff)
downloadpostgresql-9de156f116125728dc799130135988339467ccc4.tar.gz
postgresql-9de156f116125728dc799130135988339467ccc4.zip
Type 'socklen_t' might be the right way to declare getsockopt()'s last
parameter in some flavor of Unix, but Linux, HPUX, and SunOS all say it's int. For now I'm just going to make it int so that I can compile. If the other way is actually necessary on some Unix somewhere, I guess we will need a configure test...
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 85764b1e9d4..a5380822ace 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.107 1999/11/30 03:08:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.108 1999/12/02 00:26:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1064,7 +1064,7 @@ PQconnectPoll(PGconn *conn)
{
SOCKET_SIZE_TYPE laddrlen;
int optval;
- socklen_t optlen = sizeof(int);
+ int optlen = sizeof(int);
/* Write ready, since we've made it here, so the connection
* has been made. */