Fix builds in conda-forge, which doesn't have CLOCK_BOOTTIME
Fixes #8422 Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
d69d3cda34
commit
257f6dd57d
2 changed files with 3 additions and 1 deletions
2
ChangeLog.d/fix-linux-builds-in-conda-forge.txt
Normal file
2
ChangeLog.d/fix-linux-builds-in-conda-forge.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Bugfix
|
||||
* Fix build failure in conda-forge. Fixes #8422.
|
|
@ -265,7 +265,7 @@ mbedtls_ms_time_t mbedtls_ms_time(void)
|
|||
struct timespec tv;
|
||||
mbedtls_ms_time_t current_ms;
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && defined(CLOCK_BOOTTIME)
|
||||
ret = clock_gettime(CLOCK_BOOTTIME, &tv);
|
||||
#else
|
||||
ret = clock_gettime(CLOCK_MONOTONIC, &tv);
|
||||
|
|
Loading…
Reference in a new issue