evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ki / kinect-audio-setup / libusb-1-import-path.patch
bloba0c5ad99f9f29c06dd5388c92901246862342c8c
1 commit 02fd6c4355809e1bff7c66d478e88f30bedde13b
2 Author: Nicolas Berbiche <nicolas@normie.dev>
3 Date: Wed May 5 23:14:56 2021 -0400
5 fix libusb include for Linux
7 diff --git a/kinect_upload_fw/kinect_upload_fw.c b/kinect_upload_fw/kinect_upload_fw.c
8 index 1bd4102..351c94f 100644
9 --- a/kinect_upload_fw/kinect_upload_fw.c
10 +++ b/kinect_upload_fw/kinect_upload_fw.c
11 @@ -35,7 +35,12 @@
12 #include <stdlib.h>
13 #include <string.h>
14 #include <errno.h>
16 +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(_WIN32)
17 #include <libusb.h>
18 +#else
19 +#include <libusb-1.0/libusb.h>
20 +#endif
22 #include "endian.h"