commit 5b20adc7080fc40b08f285b025b167ae3943cdec
parent 322941446c09940f338c6e9b3140c6df2afa4bd9
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 25 Dec 2015 11:37:47 +0000
mono clock: prefer native clock on W32
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c
@@ -25,6 +25,11 @@
#include "mhd_mono_clock.h"
+#if defined(_WIN32) && defined(HAVE_CLOCK_GETTIME)
+/* Prefer native clock source over wrappers */
+#undef HAVE_CLOCK_GETTIME
+#endif /* _WIN32 && HAVE_CLOCK_GETTIME */
+
#ifdef HAVE_CLOCK_GET_TIME
#include <mach/mach.h>
/* for host_get_clock_service(), mach_host_self(), mach_task_self() */