0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch 962 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. From b6eccf2160fd16405542249c62a87aff2fbfcd33 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
  3. <jeanfrancoisdelnero@free.fr>
  4. Date: Sat, 16 May 2020 09:37:40 +0200
  5. Subject: [PATCH] Fix the missing definitions build errors/warnings on some
  6. systems.
  7. [Retrieved from:
  8. https://github.com/viveris/uMTP-Responder/commit/b6eccf2160fd16405542249c62a87aff2fbfcd33]
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. ---
  11. src/usb_gadget.c | 5 ++++-
  12. 1 file changed, 4 insertions(+), 1 deletion(-)
  13. diff --git a/src/usb_gadget.c b/src/usb_gadget.c
  14. index 856bb53..9f3896f 100644
  15. --- a/src/usb_gadget.c
  16. +++ b/src/usb_gadget.c
  17. @@ -27,7 +27,10 @@
  18. #include "buildconf.h"
  19. +#include <endian.h>
  20. #include <inttypes.h>
  21. +#include <pthread.h>
  22. +#include <sys/time.h>
  23. #include <sys/ioctl.h>
  24. @@ -38,7 +41,7 @@
  25. #include <unistd.h>
  26. #include <string.h>
  27. #include <stdio.h>
  28. -#include <pthread.h>
  29. +
  30. #include <signal.h>
  31. #include <errno.h>