mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Do no test net_usleep() when not defined
This commit is contained in:
parent
a39416ff38
commit
462906f955
2 changed files with 4 additions and 2 deletions
|
|
@ -333,7 +333,7 @@ void m_sleep( int milliseconds )
|
|||
#if defined(POLARSSL_SELF_TEST)
|
||||
|
||||
/* To test net_usleep against our functions */
|
||||
#if defined(POLARSSL_NET_C)
|
||||
#if defined(POLARSSL_NET_C) && defined(POLARSSL_HAVE_TIME)
|
||||
#include "polarssl/net.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -465,7 +465,7 @@ hard_test:
|
|||
if( verbose != 0 )
|
||||
polarssl_printf( "passed\n" );
|
||||
|
||||
#if defined(POLARSSL_NET_C)
|
||||
#if defined(POLARSSL_NET_C) && defined(POLARSSL_HAVE_TIME)
|
||||
if( verbose != 0 )
|
||||
polarssl_printf( " TIMING test #4 (net_usleep/ get_timer): " );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue