0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch 845 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 77e399899d9d7297d23c321811b628febdf0fd92 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 16 Apr 2015 22:43:49 +0200
  4. Subject: [PATCH] tftp.h/tftpd.h: fix musl compile (missing include)
  5. Add sys/types.h include for u_char typedef.
  6. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  7. ---
  8. tftp.h | 1 +
  9. tftpd.h | 1 +
  10. 2 files changed, 2 insertions(+)
  11. diff --git a/tftp.h b/tftp.h
  12. index 12bd6aa..32a3f63 100644
  13. --- a/tftp.h
  14. +++ b/tftp.h
  15. @@ -19,6 +19,7 @@
  16. #include <sys/time.h>
  17. #include <sys/times.h>
  18. +#include <sys/types.h>
  19. #include "tftp_def.h"
  20. #include "config.h"
  21. diff --git a/tftpd.h b/tftpd.h
  22. index 945065e..60d3a49 100644
  23. --- a/tftpd.h
  24. +++ b/tftpd.h
  25. @@ -20,6 +20,7 @@
  26. #include <pthread.h>
  27. #include <arpa/tftp.h>
  28. #include <arpa/inet.h>
  29. +#include <sys/types.h>
  30. #include "tftp_io.h"
  31. /*
  32. --
  33. 2.1.4