From 1884225d860f2703fbd9a52af152e421f9081665 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 7 Jul 2010 15:52:11 +0200 Subject: [PATCH] Fix compilation if async mode is disabled --- src/ftdi.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 5138e09..bbbeb9a 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -38,7 +38,6 @@ /* stuff needed for async write */ #ifdef LIBFTDI_LINUX_ASYNC_MODE #include -#include #include #include #include @@ -78,6 +77,10 @@ int gettimeofday( struct timeval *tv, void null) /* Warning: Timezone not handled (and not needed here) */ return 0; } +#else + // Include sys/time.h on non-Windows platforms + // as gettimeofday() needs it. + #include #endif /** -- 1.7.1