diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 08:19:55 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 08:19:55 +0000 |
commit | 2759e9c40629a3ec1c4d841f0cf17cf0d09b0a76 (patch) | |
tree | f6f1d9970bf311d406a3c0e798b1aa63c2d9786f /shell | |
parent | c717c57260486d25d6f33ffafa9f91acbc775a0a (diff) |
CWS-TOOLING: integrate CWS cloph11
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index c443e240cee4..9126f1829ed7 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: recently_used_file.cxx,v $ - * $Revision: 1.7 $ + * $Revision: 1.7.30.1 $ * * This file is part of OpenOffice.org. * @@ -91,11 +91,7 @@ recently_used_file::recently_used_file() : if (NULL == file_) throw "I/O error opening ~/.recently-used"; -#if defined(MACOSX) && (BUILD_OS_MINOR == 2) - if (flock(fileno(file_),(LOCK_EX | LOCK_NB)) != 0) -#else if (lockf(fileno(file_), F_LOCK, 0) != 0) -#endif { fclose(file_); throw "Cannot lock ~/.recently-used"; @@ -108,11 +104,7 @@ recently_used_file::recently_used_file() : //------------------------------------------------ recently_used_file::~recently_used_file() { -#if defined(MACOSX) && (BUILD_OS_MINOR == 2) - flock(fileno(file_),LOCK_UN); -#else lockf(fileno(file_), F_ULOCK, 0); -#endif fclose(file_); } |