Move all (nano|u)sleep-related decisions to default port implementation (#2462)

... where they belong.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2018-08-11 00:06:25 +02:00
committed by GitHub
parent fb35e34801
commit 29e7330b9b
6 changed files with 17 additions and 24 deletions
+6
View File
@@ -13,6 +13,12 @@
* limitations under the License.
*/
#if !defined (_XOPEN_SOURCE) || _XOPEN_SOURCE < 500
#undef _XOPEN_SOURCE
/* Required macro for sleep functions (nanosleep or usleep) */
#define _XOPEN_SOURCE 500
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#elif defined (HAVE_UNISTD_H)