summaryrefslogtreecommitdiff
path: root/indra/llvfs/llpidlock.cpp
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2009-12-03 10:41:31 -0800
committerbrad kittenbrink <brad@lindenlab.com>2009-12-03 10:41:31 -0800
commitbf4f21ecf87f9733ae25a2b9ae358efa0c654173 (patch)
tree9bfaf7ccd3d5e2cbd67d9ea405dbc8b12ffad864 /indra/llvfs/llpidlock.cpp
parent1de537d1bd0532269960490e859259ebe9391834 (diff)
parent256b8aba31ad92200d6449305d59bf5937f0563b (diff)
Merge of include dependency cleanup work with viewer-2-0
Diffstat (limited to 'indra/llvfs/llpidlock.cpp')
-rwxr-xr-xindra/llvfs/llpidlock.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llvfs/llpidlock.cpp b/indra/llvfs/llpidlock.cpp
index 315baa001d..95e3692e10 100755
--- a/indra/llvfs/llpidlock.cpp
+++ b/indra/llvfs/llpidlock.cpp
@@ -41,6 +41,15 @@
#include "llframetimer.h"
#if LL_WINDOWS //For windows platform.
+
+#include <windows.h>
+
+namespace {
+ inline DWORD getpid() {
+ return GetCurrentProcessId();
+ }
+}
+
bool isProcessAlive(U32 pid)
{
return (bool) GetProcessVersion((DWORD)pid);