summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/terminator/nsTerminator.cpp4
-rw-r--r--toolkit/xre/nsSigHandlers.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/components/terminator/nsTerminator.cpp b/toolkit/components/terminator/nsTerminator.cpp
index 007885b8d..9f6a90b57 100644
--- a/toolkit/components/terminator/nsTerminator.cpp
+++ b/toolkit/components/terminator/nsTerminator.cpp
@@ -30,7 +30,7 @@
#include "nsIObserverService.h"
#include "nsIPrefService.h"
-#if defined(XP_WIN)
+#ifdef XP_WIN
#include <windows.h>
#else
#include <unistd.h>
@@ -385,7 +385,7 @@ nsTerminator::StartWatchdog()
}
UniquePtr<Options> options(new Options());
-#if !defined(XP_SOLARIS)
+#ifdef XP_SOLARIS
const PRIntervalTime ticksDuration = PR_MillisecondsToInterval(1000);
#else
const PRIntervalTime ticksDuration = 1000;
diff --git a/toolkit/xre/nsSigHandlers.cpp b/toolkit/xre/nsSigHandlers.cpp
index a3a366f95..660af4522 100644
--- a/toolkit/xre/nsSigHandlers.cpp
+++ b/toolkit/xre/nsSigHandlers.cpp
@@ -32,7 +32,7 @@
#endif
#endif
-#if defined(XP_SOLARIS)
+#ifdef XP_SOLARIS
#include <sys/resource.h>
#include <ucontext.h>
#endif
@@ -286,7 +286,7 @@ void InstallSignalHandlers(const char *aProgname)
}
#endif
-#if defined(XP_SOLARIS)
+#ifdef XP_SOLARIS
#define NOFILES 512
// Boost Solaris file descriptors