diff options
Diffstat (limited to 'src/microhttpd/mhd_mono_clock.c')
-rw-r--r-- | src/microhttpd/mhd_mono_clock.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c index 8af998fa..e06f6d16 100644 --- a/src/microhttpd/mhd_mono_clock.c +++ b/src/microhttpd/mhd_mono_clock.c | |||
@@ -25,10 +25,15 @@ | |||
25 | 25 | ||
26 | #include "mhd_mono_clock.h" | 26 | #include "mhd_mono_clock.h" |
27 | 27 | ||
28 | #if defined(_WIN32) && ! defined(__CYGWIN__) && defined(HAVE_CLOCK_GETTIME) | 28 | #if defined(_WIN32) && ! defined(__CYGWIN__) |
29 | /* Prefer native clock source over wrappers */ | 29 | /* Prefer native clock source over wrappers */ |
30 | #ifdef HAVE_CLOCK_GETTIME | ||
30 | #undef HAVE_CLOCK_GETTIME | 31 | #undef HAVE_CLOCK_GETTIME |
31 | #endif /* _WIN32 && ! __CYGWIN__ && HAVE_CLOCK_GETTIME */ | 32 | #endif /* HAVE_CLOCK_GETTIME */ |
33 | #ifdef HAVE_GETTIMEOFDAY | ||
34 | #undef HAVE_GETTIMEOFDAY | ||
35 | #endif /* HAVE_GETTIMEOFDAY */ | ||
36 | #endif /* _WIN32 && ! __CYGWIN__ */ | ||
32 | 37 | ||
33 | #ifdef HAVE_TIME_H | 38 | #ifdef HAVE_TIME_H |
34 | #include <time.h> | 39 | #include <time.h> |