Add some missing |#if defined (XP_UNIX)| checks to fix bustage on Windows caused by bug 372081.
authorreed@reedloden.com
Tue, 15 Jan 2008 19:56:04 -0800
changeset 10322 c4b347794761f6ebc5fbb87849de21a5ba70c62a
parent 10321 4781e99003780da81774125b124c53d8c3fc26c3
child 10323 0d9c0ff20cdbef182b950c518558454a45dfb494
push idunknown
push userunknown
push dateunknown
bugs372081
milestone1.9b3pre
Add some missing |#if defined (XP_UNIX)| checks to fix bustage on Windows caused by bug 372081.
profile/dirserviceprovider/src/nsProfileLock.cpp
--- a/profile/dirserviceprovider/src/nsProfileLock.cpp
+++ b/profile/dirserviceprovider/src/nsProfileLock.cpp
@@ -66,33 +66,35 @@
 #endif
 
 // **********************************************************************
 // class nsProfileLock
 //
 // This code was moved from profile/src/nsProfileAccess.
 // **********************************************************************
 
+#if defined (XP_UNIX)
 static PRBool sDisableSignalHandling = PR_FALSE;
+#endif
 
 nsProfileLock::nsProfileLock() :
     mHaveLock(PR_FALSE)
 #if defined (XP_WIN)
     ,mLockFileHandle(INVALID_HANDLE_VALUE)
 #elif defined (XP_OS2)
     ,mLockFileHandle(-1)
 #elif defined (XP_UNIX)
     ,mPidLockFileName(nsnull)
     ,mLockFileDesc(-1)
 #endif
 {
 #if defined (XP_UNIX)
     next = prev = this;
+    sDisableSignalHandling = PR_GetEnv("MOZ_DISABLE_SIG_HANDLER") ? PR_TRUE : PR_FALSE;
 #endif
-    sDisableSignalHandling = PR_GetEnv("MOZ_DISABLE_SIG_HANDLER") ? PR_TRUE : PR_FALSE;
 }
 
 
 nsProfileLock::nsProfileLock(nsProfileLock& src)
 {
     *this = src;
 }