Fix Windows build by defining clock sources and adding include file.
authorBruce Cran <bruce@cran.org.uk>
Mon, 28 Jan 2013 16:07:15 +0000 (16:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Jan 2013 17:44:55 +0000 (18:44 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure

index 7352bf1..3ea10b2 100755 (executable)
--- a/configure
+++ b/configure
@@ -182,7 +182,10 @@ CYGWIN*)
   output_sym "CONFIG_RUSAGE_THREAD"
   output_sym "CONFIG_WINDOWSAIO"
   output_sym "CONFIG_FDATASYNC"
+  output_sym "CONFIG_GETTIMEOFDAY"
+  output_sym "CONFIG_CLOCK_GETTIME"
   echo "CC=$CC" >> $config_host_mak
+  echo "EXTFLAGS=-include config-host.h -D_GNU_SOURCE" >> $config_host_mak
   exit 0
 esac