From 1b58ecbfb0f0aa4d29e70472f90178f86bb88a1c Mon Sep 17 00:00:00 2001 From: Oldes Huhuman Date: Thu, 23 Nov 2023 22:46:20 +0100 Subject: [PATCH] Fixed compilation for Haiku OS Related to: https://github.com/Mbed-TLS/mbedtls/issues/8562 Signed-off-by: Oldes Huhuman --- library/platform_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/platform_util.c b/library/platform_util.c index 6d2dd144d..cc463402c 100644 --- a/library/platform_util.c +++ b/library/platform_util.c @@ -243,10 +243,10 @@ extern inline void mbedtls_put_unaligned_uint64(void *p, uint64_t x); #include #if !defined(_WIN32) && \ (defined(unix) || defined(__unix) || defined(__unix__) || \ - (defined(__APPLE__) && defined(__MACH__))) + (defined(__APPLE__) && defined(__MACH__)) || defined(__HAIKU__)) #include -#endif /* !_WIN32 && (unix || __unix || __unix__ || (__APPLE__ && __MACH__)) */ -#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 199309L) +#endif /* !_WIN32 && (unix || __unix || __unix__ || (__APPLE__ && __MACH__) || defined(__HAIKU__)) */ +#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 199309L) || defined(__HAIKU__) mbedtls_ms_time_t mbedtls_ms_time(void) { int ret;