Fix the build on non-UNIXLIKE platforms

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2026-02-21 21:17:47 +01:00
parent 5ca8894b59
commit f994fe05cd

View File

@@ -14,6 +14,13 @@
#include <time.h>
#include <unistd.h>
#else /* defined(MBEDTLS_PLATFORM_IS_UNIXLIKE) */
/* Constants used in the test data need to be defined even if no test
* functions that use them are enabled. */
#define CLOCK_REALTIME 0
#define CLOCK_MONOTONIC 0
#endif /* defined(MBEDTLS_PLATFORM_IS_UNIXLIKE) */
/* END_HEADER */