lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

100-musl-compat.patch (1355B)


      1 --- a/dfu.h
      2 +++ b/dfu.h
      3 @@ -25,6 +25,7 @@
      4  
      5  #ifdef HAVE_LIBUSB
      6  #if defined(HAVE_USB_H)
      7 +#  include <sys/types.h>
      8  #  include <usb.h>
      9  #elif defined(HAVE_LUSB0_USB_H)
     10  #  include <lusb0_usb.h>
     11 --- a/pickit2.c
     12 +++ b/pickit2.c
     13 @@ -50,6 +50,7 @@
     14  #include <string.h>
     15  #include <inttypes.h>
     16  #include <unistd.h>
     17 +#include <sys/types.h>
     18  
     19  #include "avrdude.h"
     20  #include "libavrdude.h"
     21 --- a/ser_avrdoper.c
     22 +++ b/ser_avrdoper.c
     23 @@ -248,6 +248,7 @@ static int usbGetReport(union filedescri
     24  /* ------------------------------------------------------------------------ */
     25  
     26  #if defined(HAVE_USB_H)
     27 +#  include <sys/types.h>
     28  #  include <usb.h>
     29  #elif defined(HAVE_LUSB0_USB_H)
     30  #  include <lusb0_usb.h>
     31 --- a/usbtiny.c
     32 +++ b/usbtiny.c
     33 @@ -40,6 +40,7 @@
     34  
     35  #if defined(HAVE_LIBUSB)      // we use LIBUSB to talk to the board
     36  #if defined(HAVE_USB_H)
     37 +#  include <sys/types.h>
     38  #  include <usb.h>
     39  #elif defined(HAVE_LUSB0_USB_H)
     40  #  include <lusb0_usb.h>
     41 --- a/usbasp.c
     42 +++ b/usbasp.c
     43 @@ -54,6 +54,7 @@
     44  # endif
     45  #else
     46  # if defined(HAVE_USB_H)
     47 +#  include <sys/types.h>
     48  #  include <usb.h>
     49  # elif defined(HAVE_LUSB0_USB_H)
     50  #  include <lusb0_usb.h>
     51 --- a/usb_libusb.c
     52 +++ b/usb_libusb.c
     53 @@ -36,6 +36,7 @@
     54  #include <sys/time.h>
     55  
     56  #if defined(HAVE_USB_H)
     57 +#  include <sys/types.h>
     58  #  include <usb.h>
     59  #elif defined(HAVE_LUSB0_USB_H)
     60  #  include <lusb0_usb.h>