30
30
* Portions Copyright (c) 1996-2007, 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.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 $
34
34
*
35
35
*-------------------------------------------------------------------------
36
36
*/
@@ -245,7 +245,6 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
245
245
int fd ,
246
246
err ;
247
247
int maxconn ;
248
- int one = 1 ;
249
248
int ret ;
250
249
char portNumberStr [32 ];
251
250
const char * familyDesc ;
@@ -256,6 +255,9 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
256
255
struct addrinfo hint ;
257
256
int listen_index = 0 ;
258
257
int added = 0 ;
258
+ #if !defined(WIN32 )|| defined(IPV6_V6ONLY )
259
+ int one = 1 ;
260
+ #endif
259
261
260
262
/* Initialize hint structure */
261
263
MemSet (& hint ,0 ,sizeof (hint ));