From c8693f11afb2bea949367f3246d692710d6f2957 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 15 Apr 2003 18:52:32 +0000
Subject: [PATCH] Fix declarations for systems supporting sane locks.

---
 src/xpdev/filewrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/filewrap.c b/src/xpdev/filewrap.c
index fa4280d439..82446f24f1 100644
--- a/src/xpdev/filewrap.c
+++ b/src/xpdev/filewrap.c
@@ -150,7 +150,7 @@ int DLLCALL sopen(char *fn, int access, int share)
 #ifndef F_SANEWRLCKNO
 	int	flock_op=LOCK_NB;	/* non-blocking */
 #endif
-#ifndef BSD
+#if defined(F_SANEWRLCKNO) || !defined(BSD)
 	struct flock alock;
 #endif
 
-- 
GitLab