* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef __linux__
+#define _BSD_SOURCE // for timeradd, timersub, timercmp
+#endif
+
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <tchar.h>
#include <setupapi.h>
#include <cfgmgr32.h>
+#undef DEFINE_GUID
+#define DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
+ static const GUID name = { l,w1,w2,{ b1,b2,b3,b4,b5,b6,b7,b8 } }
#include <usbioctl.h>
+#include <usbiodef.h>
#else
#include <limits.h>
#include <termios.h>