Commit 3e66e2b1 authored by Bruce Momjian's avatar Bruce Momjian

make lock variable only used with fcntl

parent 252568dc
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.55 1998/10/06 02:31:39 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.56 1998/10/07 03:45:12 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -526,7 +526,9 @@ StreamServerPort(char *hostName, short portName, int *fdP) ...@@ -526,7 +526,9 @@ StreamServerPort(char *hostName, short portName, int *fdP)
family; family;
size_t len; size_t len;
int one = 1; int one = 1;
#ifdef HAVE_FCNTL_SETLK
int lock_fd; int lock_fd;
#endif
family = ((hostName != NULL) ? AF_INET : AF_UNIX); family = ((hostName != NULL) ? AF_INET : AF_UNIX);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment