Reviewed by Maciej
[WebKit-https.git] / JavaScriptCore / kjs / interpreter.cpp
index 1d792df913fee50a0e9df75ee2ac0f47362aa89f..7fcefa88c564d95b6ad5aa8795f48a27d36d0ac9 100644 (file)
@@ -142,9 +142,9 @@ void TimeoutChecker::alarmHandler(int)
 
 void TimeoutChecker::pauseTimeoutCheck(Interpreter* interpreter)
 {
+#if HAVE(SYS_TIME_H)
     ASSERT(interpreter == s_executingInterpreter);
 
-#if HAVE(SYS_TIME_H)
     void (*currentSignalHandler)(int);
    
     // Block signal
@@ -163,7 +163,9 @@ void TimeoutChecker::pauseTimeoutCheck(Interpreter* interpreter)
 
 void TimeoutChecker::resumeTimeoutCheck(Interpreter* interpreter)
 {
+#if HAVE(SYS_TIME_H)
     ASSERT(interpreter == s_executingInterpreter);
+#endif
 
     interpreter->m_pauseTimeoutCheckCount--;