Build fixes

This commit is contained in:
Siana Gearz
2012-01-25 23:45:18 +01:00
parent df65a3b7fc
commit 6939d2d70b
4 changed files with 26 additions and 19 deletions

View File

@@ -44,19 +44,22 @@
#include <windows.h>
namespace {
inline DWORD getpid() {
return GetCurrentProcessId();
}
static U32 getPID() {
return GetCurrentProcessId();
}
bool isProcessAlive(U32 pid)
static bool isProcessAlive(U32 pid)
{
return (bool) GetProcessVersion((DWORD)pid);
}
#else //Everyone Else
bool isProcessAlive(U32 pid)
static U32 getPID() {
return getpid()
}
static bool isProcessAlive(U32 pid)
{
return (bool) kill( (pid_t)pid, 0);
}
@@ -71,7 +74,7 @@ class LLPidLockFile
mAutosave(false),
mSaving(false),
mWaiting(false),
mPID(getpid()),
mPID(getPID()),
mNameTable(NULL),
mClean(true)
{