wrowe 02/02/11 17:29:26
Modified: file_io/win32 flock.c
Log:
Filelocks are unsupported on WinCE. Submitted by Mladen Turk
<[EMAIL PROTECTED]>
Revision Changes Path
1.9 +9 -0 apr/file_io/win32/flock.c
Index: flock.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/flock.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- flock.c 5 Jan 2002 08:02:39 -0000 1.8
+++ flock.c 12 Feb 2002 01:29:26 -0000 1.9
@@ -56,6 +56,10 @@
APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type)
{
+#ifdef _WIN32_WCE
+ /* The File locking is unsuported on WCE */
+ return APR_ENOTIMPL;
+#else
const DWORD len = 0xffffffff;
DWORD flags;
@@ -80,10 +84,14 @@
}
return APR_SUCCESS;
+#endif /* !defined(_WIN32_WCE) */
}
APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile)
{
+#ifdef _WIN32_WCE
+ return APR_ENOTIMPL;
+#else
DWORD len = 0xffffffff;
if (apr_os_level >= APR_WIN_NT) {
@@ -99,4 +107,5 @@
}
return APR_SUCCESS;
+#endif /* !defined(_WIN32_WCE) */
}