MINGW-packages/mingw-w64-libftdi/0002-libftdi-include-sys-time-timeval.patch
Biswapriyo Nath 402ade36a3 libftdi: Include sys/time.h for timeval structure
This fixes the following compiler error.
In file included from ../libsidplayfp-2.6.0/src/builders/exsid-builder/driver/exSID_ftdiwrap.c:42:
/ucrt64/include/libftdi1/ftdi.h:481:20: error: field 'time' has incomplete type
  481 |     struct timeval time;
      |                    ^~~~
2024-01-08 15:37:04 +00:00

12 lines
165 B
Diff

--- a/src/ftdi.h
+++ b/src/ftdi.h
@@ -19,7 +19,7 @@
#define __libftdi_h__
#include <stdint.h>
-#ifndef _WIN32
+#ifndef _MSC_VER
#include <sys/time.h>
#endif