core: include sys/time.h on any GNU libc OS
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 27 Dec 2019 17:50:27 +0000 (18:50 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Sat, 28 Dec 2019 17:05:13 +0000 (18:05 +0100)
commit1e9d26a753a741bfdb0769b4c895697d16edcc27
tree4b0e62ce996bbca24d41645b59c9614bfc2c80de
parent53572d7e5eee79266139399924c7491174be1670
core: include sys/time.h on any GNU libc OS

GNU libc provides sys/time.h, so unconditionally include it when using
that libc.

Since sys/time.h is already included on a number of OSes, include it to
minimize the differences between OSes when using libusb. Arguably,
sources using functions from sys/time.h (such as gettimeofday) ought to
already include it on their own; OTOH, let's avoid making such issues
OS-specific.
libusb/libusb.h
libusb/version_nano.h