Quantcast

[PATCH] Add missing sys/time.h include

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Add missing sys/time.h include

Yegor Yefremov
From: Yegor Yefremov <[hidden email]>

When compiling libftdi with mingw toolchain it complains about
implicit declaration of gettimeofday().

Signed-off-by: Yegor Yefremov <[hidden email]>
---
 src/ftdi_stream.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ftdi_stream.c b/src/ftdi_stream.c
index 2ad54c0..2ed39b3 100644
--- a/src/ftdi_stream.c
+++ b/src/ftdi_stream.c
@@ -41,6 +41,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <sys/time.h>
 #include <libusb.h>
 
 #include "ftdi.h"
--
2.11.0


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH] Add missing sys/time.h include

Thomas Jarosch
On Wednesday, 12 April 2017 07:55:22 CEST [hidden email] wrote:
> From: Yegor Yefremov <[hidden email]>
>
> When compiling libftdi with mingw toolchain it complains about
> implicit declaration of gettimeofday().

applied, thanks.

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...