]> granicus.if.org Git - postgresql/commitdiff
Move TCP keepalive macro definition
authorBruce Momjian <bruce@momjian.us>
Sat, 13 Mar 2010 15:35:46 +0000 (15:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 13 Mar 2010 15:35:46 +0000 (15:35 +0000)
Jaime Casanova

src/backend/libpq/pqcomm.c

index 5826aacaf77781765b486b9ec01fa96dcce0f10a..71f9928782fffb8ed5267a9687c562f1b32659f1 100644 (file)
@@ -30,7 +30,7 @@
  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- *     $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.205 2010/02/26 02:00:43 momjian Exp $
+ *     $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.206 2010/03/13 15:35:46 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1418,10 +1418,10 @@ pq_getkeepalivesinterval(Port *port)
 int
 pq_setkeepalivesinterval(int interval, Port *port)
 {
+#ifdef TCP_KEEPINTVL
        if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
                return STATUS_OK;
 
-#ifdef TCP_KEEPINTVL
        if (interval == port->keepalives_interval)
                return STATUS_OK;