Windows: Fix broken WDK compilation
authorPete Batard <pete@akeo.ie>
Mon, 18 Feb 2013 22:22:01 +0000 (22:22 +0000)
committerPete Batard <pete@akeo.ie>
Mon, 18 Feb 2013 22:22:01 +0000 (22:22 +0000)
790ffc78b008a03c95d10899f53997b504f55c72 moved the inclusion of poll_windows.h
  after the use of struct timeval, which removed the hidden winsock.h include
  where timeval is defined on the WDK.
* Make the winsock.h include explicit

libusb/libusbi.h
libusb/version_nano.h

index e296a2c..f81b5d1 100644 (file)
@@ -30,6 +30,9 @@
 #ifdef HAVE_POLL_H
 #include <poll.h>
 #endif
+#ifdef DDKBUILD
+#include <winsock.h>   // needed for struct timeval for WDK
+#endif
 
 #include "libusb.h"
 #include "version.h"
index 0422f9d..abfd4b3 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10615
+#define LIBUSB_NANO 10616