mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08:00
make lock variable only used with fcntl
This commit is contained in:
parent
252568dc11
commit
3e66e2b17b
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
size_t len;
|
||||
int one = 1;
|
||||
#ifdef HAVE_FCNTL_SETLK
|
||||
int lock_fd;
|
||||
#endif
|
||||
|
||||
family = ((hostName != NULL) ? AF_INET : AF_UNIX);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user