From fa4a57955f422dbf698bd561f88c8e13b2a8bc2f Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Thu, 5 Dec 2024 21:20:51 -0800
Subject: [PATCH] Resolve Borland build warning: missing xp_lockfile()
 prototype

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

diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h
index c60a98f704..24a5af8aa3 100644
--- a/src/xpdev/filewrap.h
+++ b/src/xpdev/filewrap.h
@@ -155,8 +155,8 @@
 extern "C" {
 #endif
 
+DLLEXPORT int	xp_lockfile(int fd, off_t pos, off_t len, bool block);
 #if !defined(__BORLANDC__) && !defined(__WATCOMC__)
-	DLLEXPORT int	xp_lockfile(int fd, off_t pos, off_t len, bool block);
 	DLLEXPORT int	lock(int fd, off_t pos, off_t len);
 	DLLEXPORT int	unlock(int fd, off_t pos, off_t len);
 #endif
-- 
GitLab