1. fixed test in configure for gettimeofday() argument

2. portability fixes in wxSingleInstanceChecer (use S_IRUSR, not S_IREAD)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-08 23:35:17 +00:00
parent f23e92e72a
commit 776862b497
3 changed files with 56 additions and 52 deletions

View File

@@ -44,7 +44,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h> // for S_I[RW]USR
#include <signal.h> // for kill()
#include <errno.h>
@@ -153,7 +153,7 @@ LockResult wxSingleInstanceCheckerImpl::CreateLockFile()
// try to open the file
m_fdLock = open(m_nameLock,
O_WRONLY | O_CREAT | O_EXCL,
S_IREAD | S_IWRITE);
S_IRUSR | S_IWUSR);
if ( m_fdLock != -1 )
{