Permalink
Browse files

libusbemu: include winsock.h

MSVC needs struct timeval from winsock.h to support freenect_process_events_timeout.

Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  • Loading branch information...
1 parent 3f7e959 commit 982123c37bee03cd9935193de57d8a44265240f6 @zarvox zarvox committed Nov 22, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 platform/windows/libusb10emu/libusb-1.0/libusb.h
View
2 platform/windows/libusb10emu/libusb-1.0/libusb.h
@@ -39,6 +39,8 @@
#if defined(_MSC_VER)
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
+ // We need struct timeval.
+ #include <winsock.h>
#else
#include <stdint.h>
#endif

0 comments on commit 982123c

Please sign in to comment.