]> granicus.if.org Git - postgresql/commitdiff
make lock variable only used with fcntl
authorBruce Momjian <bruce@momjian.us>
Wed, 7 Oct 1998 03:45:12 +0000 (03:45 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 7 Oct 1998 03:45:12 +0000 (03:45 +0000)
src/backend/libpq/pqcomm.c

index 74f14516e5953826f30ec25a070bf0b6affe2604..31e6f982c4b538d71db98ebc310414549ac9d263 100644 (file)
@@ -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);