From: Thomas Jarosch Date: Wed, 7 Jul 2010 13:52:11 +0000 (+0200) Subject: Fix compilation if async mode is disabled X-Git-Tag: v0.19~20 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=1884225d860f2703fbd9a52af152e421f9081665 Fix compilation if async mode is disabled --- 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 /**