summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-16 11:41:00 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-16 11:41:00 +0000
commit1af2e072d418cff7d0ae3bf08850ca60e34a5e99 (patch)
tree999a5c0f3fe357f5816a17577b59ce90c4199522
parent5dffab1f2d224604c2f79a4d9de19fe0d4c428aa (diff)
#i10000# see also MWS fix on OOO310_m1
-rw-r--r--sal/osl/unx/profile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index ccee8fd613bd..a01d292e23b6 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.c
@@ -1207,12 +1207,12 @@ static sal_Bool OslProfile_lockFile(const osl_TFile* pFile, osl_TLockMode eMode)
break;
}
-#ifndef MACOSX // not MAC OSX
- if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 )
-#else
- /* Mac OSX will return ENOTSUP for webdav drives so we should ignore it */
- if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 && errno != ENOTSUP )
-#endif /* MACOSX */
+#ifndef MACOSX // not MAC OSX
+ if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 )
+#else
+ /* Mac OSX will return ENOTSUP for webdav drives so we should ignore it */
+ if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 && errno != ENOTSUP )
+#endif /* MACOSX */
{
OSL_TRACE("fcntl returned -1 (%s)\n",strerror(errno));
#ifdef TRACE_OSL_PROFILE