Add configure script

This commit is contained in:
2025-07-29 21:04:07 +03:00
parent 92fab9dbba
commit 682abc5664
8 changed files with 286 additions and 267 deletions

View File

@@ -2,6 +2,7 @@
#define BH_PLATFORM_POSIX_TIMESPEC_H
#include <Config.h>
#include <BH/Thread.h>
#include <sys/time.h>
#include <time.h>
@@ -10,7 +11,7 @@
static int convertToTimespec(struct timespec *ts,
uint32_t timeout)
{
#ifdef USE_CLOCK_GETTIME
#if (_POSIX_TIMERS > 0) || defined(BH_USE_CLOCK_GETTIME)
if (clock_gettime(CLOCK_REALTIME, ts))
return BH_ERROR;
#else