|
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.206 2010/03/1315:35:46 momjian Exp $ |
| 33 | + *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.207 2010/03/1316:40:38 momjian Exp $ |
34 | 34 | * |
35 | 35 | *------------------------------------------------------------------------- |
36 | 36 | */ |
@@ -1346,10 +1346,10 @@ pq_getkeepalivesidle(Port *port) |
1346 | 1346 | int |
1347 | 1347 | pq_setkeepalivesidle(intidle,Port*port) |
1348 | 1348 | { |
| 1349 | +#ifdefTCP_KEEPIDLE |
1349 | 1350 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family)) |
1350 | 1351 | returnSTATUS_OK; |
1351 | 1352 |
|
1352 | | -#ifdefTCP_KEEPIDLE |
1353 | 1353 | if (idle==port->keepalives_idle) |
1354 | 1354 | returnSTATUS_OK; |
1355 | 1355 |
|
@@ -1490,10 +1490,10 @@ pq_getkeepalivescount(Port *port) |
1490 | 1490 | int |
1491 | 1491 | pq_setkeepalivescount(intcount,Port*port) |
1492 | 1492 | { |
| 1493 | +#ifdefTCP_KEEPCNT |
1493 | 1494 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family)) |
1494 | 1495 | returnSTATUS_OK; |
1495 | 1496 |
|
1496 | | -#ifdefTCP_KEEPCNT |
1497 | 1497 | if (count==port->keepalives_count) |
1498 | 1498 | returnSTATUS_OK; |
1499 | 1499 |
|
|