diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index d3faad91ea..569f147955 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -30,10 +30,10 @@ #define mbedtls_free free #endif -#if !defined(MBEDTLS_TIMING_C) +#if !defined(MBEDTLS_HAVE_TIME) int main( void ) { - mbedtls_printf("MBEDTLS_TIMING_C not defined.\n"); + mbedtls_printf("MBEDTLS_HAVE_TIME not defined.\n"); mbedtls_exit( 0 ); } #else @@ -41,8 +41,6 @@ int main( void ) #include #include -#include "mbedtls/timing.h" - #include "mbedtls/md5.h" #include "mbedtls/ripemd160.h" #include "mbedtls/sha1.h" @@ -1304,4 +1302,4 @@ int main( int argc, char *argv[] ) mbedtls_exit( 0 ); } -#endif /* MBEDTLS_TIMING_C */ +#endif /* MBEDTLS_HAVE_TIME */ diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index 21a5173b5b..bc78fab869 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -73,7 +73,9 @@ int main( void ) #endif #endif /* _MSC_VER */ #else /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */ +#if defined(MBEDTLS_HAVE_TIME) #include +#endif #include #include #endif /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */