From 223e5aae4f0dcf228d758ae60f02398e3d1e95da Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 22 Jul 2016 12:29:21 +0200 Subject: [PATCH] Build on _WIN32: Don't include sys/time.h The attached patch fixes compilation with Visual Studio: sys/time.h isn't available on Windows. timeval is defined within windows includes. Compiles OK for Cygwin/Mingw too. --- src/ftdi.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/ftdi.h b/src/ftdi.h index ca38bbe..fd9a8a9 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -18,7 +18,9 @@ #define __libftdi_h__ #include +#ifndef _WIN32 #include +#endif /* 'interface' might be defined as a macro on Windows, so we need to * undefine it so as not to break the current libftdi API, because -- 1.7.1