You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3 KiB

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