FIO Windows update
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 2420d1039cd18cf1b99f4c10c6568f61ce42a678..93482f5294ed55c245e25a0e98f8151fe7354ced 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -161,13 +161,8 @@ static void posix_timer_setup(void)
        evt.sigev_notify = SIGEV_THREAD;
        evt.sigev_notify_function = ival_fn;
 
        evt.sigev_notify = SIGEV_THREAD;
        evt.sigev_notify_function = ival_fn;
 
-#ifndef __CYGWIN__
-       if (timer_create(CLOCK_MONOTONIC, &evt, &ival_timer) < 0)
+       if (timer_create(FIO_TIMER_CLOCK, &evt, &ival_timer) < 0)
                perror("timer_create");
                perror("timer_create");
-#else /* Windows (and thus Cygwin) doesn't have a monotonic clock */
-       if (timer_create(CLOCK_REALTIME, &evt, &ival_timer) < 0)
-               perror("timer_create");
-#endif
 
 }
 
 
 }