diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h
index c9b7b6f1a115c96a33bfd7fd41a2448296426bc6..aaab270fb63693afbb34cc23f3241235883057b3 100644
--- a/src/xpdev/filewrap.h
+++ b/src/xpdev/filewrap.h
@@ -126,7 +126,7 @@
 extern "C" {
 #endif
 
-#if !defined(__BORLANDC__)
+#if !defined(__BORLANDC__) && !defined(__WATCOMC__)
 	DLLEXPORT int	DLLCALL	lock(int fd, long pos, long len);
 	DLLEXPORT int	DLLCALL unlock(int fd, long pos, long len);
 #endif
diff --git a/src/xpdev/wraptest.wpj b/src/xpdev/wraptest.wpj
new file mode 100644
index 0000000000000000000000000000000000000000..d03c654a239e5295e09b1bfeeecfb8ccd6a78de7
--- /dev/null
+++ b/src/xpdev/wraptest.wpj
@@ -0,0 +1,43 @@
+40
+projectIdent
+0
+VpeMain
+1
+WRect
+0
+0
+7680
+9216
+2
+MProject
+3
+MCommand
+0
+4
+MCommand
+0
+1
+5
+WFileName
+12
+wraptest.tgt
+6
+WVList
+1
+7
+VComponent
+8
+WRect
+0
+0
+5632
+4147
+0
+0
+9
+WFileName
+12
+wraptest.tgt
+0
+4
+7