3030 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
3131 * Portions Copyright (c) 1994, Regents of the University of California
3232 *
33- *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.194 2007/07/23 10 :16:54 mha Exp $
33+ *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.195 2007/07/24 11 :16:36 mha Exp $
3434 *
3535 *-------------------------------------------------------------------------
3636 */
@@ -245,7 +245,6 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
245245int fd ,
246246err ;
247247int maxconn ;
248- int one = 1 ;
249248int ret ;
250249char portNumberStr [32 ];
251250const char * familyDesc ;
@@ -256,6 +255,9 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
256255struct addrinfo hint ;
257256int listen_index = 0 ;
258257int added = 0 ;
258+ #if !defined(WIN32 )|| defined(IPV6_V6ONLY )
259+ int one = 1 ;
260+ #endif
259261
260262/* Initialize hint structure */
261263MemSet (& hint ,0 ,sizeof (hint ));