|
30 | 30 | * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
31 | 31 | * Portions Copyright (c) 1994, Regents of the University of California
|
32 | 32 | *
|
33 |
| - *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.205 2010/02/26 02:00:43 momjian Exp $ |
| 33 | + *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.206 2010/03/13 15:35:46 momjian Exp $ |
34 | 34 | *
|
35 | 35 | *-------------------------------------------------------------------------
|
36 | 36 | */
|
@@ -1418,10 +1418,10 @@ pq_getkeepalivesinterval(Port *port)
|
1418 | 1418 | int
|
1419 | 1419 | pq_setkeepalivesinterval(intinterval,Port*port)
|
1420 | 1420 | {
|
| 1421 | +#ifdefTCP_KEEPINTVL |
1421 | 1422 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
|
1422 | 1423 | returnSTATUS_OK;
|
1423 | 1424 |
|
1424 |
| -#ifdefTCP_KEEPINTVL |
1425 | 1425 | if (interval==port->keepalives_interval)
|
1426 | 1426 | returnSTATUS_OK;
|
1427 | 1427 |
|
|