projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed compilation problem in pror commit
[wxWidgets.git]
/
src
/
unix
/
snglinst.cpp
diff --git
a/src/unix/snglinst.cpp
b/src/unix/snglinst.cpp
index d581d39f83f78dad87f891e6c0ab2a29020e63a8..bdd773a19e470197655edd8c049304d09864463b 100644
(file)
--- a/
src/unix/snglinst.cpp
+++ b/
src/unix/snglinst.cpp
@@
-18,10
+18,6
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "snglinst.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-89,9
+85,9
@@
static int wxLockFile(int fd, LockOperation lock)
fl.l_type = lock == LOCK ? F_WRLCK : F_UNLCK;
// lock the entire file
fl.l_type = lock == LOCK ? F_WRLCK : F_UNLCK;
// lock the entire file
- fl.l_whence =
fl.l_start =
fl.l_start =
- fl.l_len = 0;
+ fl.l_len =
+ fl.l_whence = 0;
// is this needed?
fl.l_pid = getpid();
// is this needed?
fl.l_pid = getpid();
@@
-277,7
+273,7
@@
bool wxSingleInstanceCheckerImpl::Create(const wxString& name)
}
char buf[256];
}
char buf[256];
-
wxFileS
ize_t count = file.Read(buf, WXSIZEOF(buf));
+
ss
ize_t count = file.Read(buf, WXSIZEOF(buf));
if ( count == wxInvalidOffset )
{
wxLogError(_("Failed to read PID from lock file."));
if ( count == wxInvalidOffset )
{
wxLogError(_("Failed to read PID from lock file."));