Only include sys/time.h on appropriate platforms
authorDaniel Drake <dan@reactivated.net>
Fri, 25 Jun 2010 17:01:58 +0000 (12:01 -0500)
committerDaniel Drake <dan@reactivated.net>
Fri, 25 Jun 2010 17:01:58 +0000 (12:01 -0500)
commit7211aba6e290f9805e911959b2a43a4b3ec56d4f
treea82f19cb66ea0cf4ba698ef8df49a008b399f236
parentb33c3cb9651459de1f3d549677cbac67a017a295
Only include sys/time.h on appropriate platforms

This header doesn't exist on windows.
For libusb, determine at configure-time if the header is available.
For libusb.h, use gcc predefined macros to only include the header
on platforms that need it.
configure.ac
libusb/io.c
libusb/libusb.h