Fix a build error (#1895)

Fixed an error when neither of libraries are found the build fails.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
rerobika
2017-06-29 12:11:18 +02:00
committed by László Langó
parent c31e8b8c17
commit 3c992de2b8
+2
View File
@@ -229,6 +229,8 @@ jerry_debugger_sleep (unsigned milliseconds) /**< suspending time */
, NULL);
#elif defined (HAVE_UNISTD_H)
usleep ((useconds_t) milliseconds * 1000);
#else /* If neither of the libs found */
JERRY_UNUSED (milliseconds);
#endif /* HAVE_TIME_H */
} /* jerry_debugger_sleep */