summaryrefslogtreecommitdiff
path: root/file_io/win32
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-02-12 01:29:26 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-02-12 01:29:26 +0000
commit766ae3781f3e5faa2d7bcc7ff1fee95d153ca153 (patch)
tree310bf4fb2369f07070bd364ad388e3e98b615517 /file_io/win32
parent41e9032f9fef2c7131154462553ae157fb9669b4 (diff)
downloadlibapr-766ae3781f3e5faa2d7bcc7ff1fee95d153ca153.tar.gz
Filelocks are unsupported on WinCE. Submitted by Mladen Turk
<mturk@mappingsoft.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62954 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32')
-rw-r--r--file_io/win32/flock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/file_io/win32/flock.c b/file_io/win32/flock.c
index 27aa7af6f..ec95f712a 100644
--- a/file_io/win32/flock.c
+++ b/file_io/win32/flock.c
@@ -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 @@ APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type)
}
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 @@ APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile)
}
return APR_SUCCESS;
+#endif /* !defined(_WIN32_WCE) */
}