mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
make lock variable only used with fcntl
This commit is contained in:
@ -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)
|
|||||||
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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user