diff options
author | Martin Willi <martin@revosec.ch> | 2014-01-02 14:30:45 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:53:05 +0200 |
commit | 89c3ff6d2cf890374b722675854f39658f22cc6d (patch) | |
tree | 56e9cddbf82e0532147e6d9feb3d5ac9c2cb9414 | |
parent | 3d50dd47ef3876ee730495fcfa0a383d5a946131 (diff) | |
download | strongswan-89c3ff6d2cf890374b722675854f39658f22cc6d.tar.bz2 strongswan-89c3ff6d2cf890374b722675854f39658f22cc6d.tar.xz |
windows: Check for clock_gettime() function itself as well
CLOCK_THREAD_CPUTIME_ID seems to be defined sometimes even if clock_gettime() is
missing.
-rw-r--r-- | src/libstrongswan/crypto/crypto_tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/crypto_tester.c b/src/libstrongswan/crypto/crypto_tester.c index 9e1d4dd90..d09844bfa 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 |