From 89c3ff6d2cf890374b722675854f39658f22cc6d Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 2 Jan 2014 14:30:45 +0100 Subject: [PATCH] windows: Check for clock_gettime() function itself as well CLOCK_THREAD_CPUTIME_ID seems to be defined sometimes even if clock_gettime() is missing. --- src/libstrongswan/crypto/crypto_tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/crypto/crypto_tester.c b/src/libstrongswan/crypto/crypto_tester.c index 9e1d4dd90f..d09844bfa7 100644 --- a/src/libstrongswan/crypto/crypto_tester.c +++ b/src/libstrongswan/crypto/crypto_tester.c @@ -104,7 +104,7 @@ static const char* get_name(void *sym) return "unknown"; } -#ifdef CLOCK_THREAD_CPUTIME_ID +#if defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_CLOCK_GETTIME) /** * Start a benchmark timer -- 2.47.2