mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Fix the build on non-Unix-like platforms that define CLOCK_REALTIME as a macro
Needed for MinGW builds in our CI. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -17,8 +17,12 @@
|
||||
#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. */
|
||||
* functions that use them are enabled.
|
||||
* Undefine the macros first in case a system header does define them
|
||||
* even though we haven't recognized the platform as Unix-like. */
|
||||
#undef CLOCK_REALTIME
|
||||
#define CLOCK_REALTIME 0
|
||||
#undef CLOCK_MONOTONIC
|
||||
#define CLOCK_MONOTONIC 0
|
||||
|
||||
#endif /* defined(MBEDTLS_PLATFORM_IS_UNIXLIKE) */
|
||||
|
||||
Reference in New Issue
Block a user