Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3e66e2b

Browse files
committed
make lock variable only used with fcntl
1 parent 252568d commit 3e66e2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/libpq/pqcomm.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.55 1998/10/06 02:31:39 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.56 1998/10/07 03:45:12 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -526,7 +526,9 @@ StreamServerPort(char *hostName, short portName, int *fdP)
526526
family;
527527
size_t len;
528528
int one = 1;
529+
#ifdef HAVE_FCNTL_SETLK
529530
int lock_fd;
531+
#endif
530532

531533
family = ((hostName != NULL) ? AF_INET : AF_UNIX);
532534

0 commit comments

Comments
 (0)