1
0

030-musl.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --- a/include/sane/sanei_udp.h
  2. +++ b/include/sane/sanei_udp.h
  3. @@ -27,6 +27,9 @@
  4. #include <netinet/in.h>
  5. #include <netdb.h>
  6. #endif
  7. +#ifdef HAVE_SYS_TYPES_H
  8. +#include <sys/types.h>
  9. +#endif
  10. extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp);
  11. extern SANE_Status sanei_udp_open_broadcast(int *fdp);
  12. --- a/backend/kvs20xx_cmd.h
  13. +++ b/backend/kvs20xx_cmd.h
  14. @@ -9,6 +9,10 @@
  15. Panasonic KV-S20xx USB-SCSI scanners.
  16. */
  17. +#ifdef HAVE_SYS_TYPES_H
  18. +#include <sys/types.h>
  19. +#endif
  20. +
  21. #define COMMAND_BLOCK 1
  22. #define DATA_BLOCK 2
  23. #define RESPONSE_BLOCK 3
  24. --- a/backend/kvs40xx.h
  25. +++ b/backend/kvs40xx.h
  26. @@ -10,6 +10,9 @@
  27. #include "../include/sane/config.h"
  28. #include <semaphore.h>
  29. +#ifdef HAVE_SYS_TYPES_H
  30. +#include <sys/types.h>
  31. +#endif
  32. #undef BACKEND_NAME
  33. #define BACKEND_NAME kvs40xx
  34. --- a/backend/hp5400.c
  35. +++ b/backend/hp5400.c
  36. @@ -67,6 +67,9 @@
  37. #include <stdlib.h> /* malloc, free */
  38. #include <string.h> /* memcpy */
  39. #include <stdio.h>
  40. +#ifdef HAVE_SYS_TYPES_H
  41. +#include <sys/types.h>
  42. +#endif
  43. #define HP5400_CONFIG_FILE "hp5400.conf"
  44. --- a/backend/hp5590.c
  45. +++ b/backend/hp5590.c
  46. @@ -48,6 +48,9 @@
  47. #include <stdio.h>
  48. #include <string.h>
  49. #include <unistd.h>
  50. +#ifdef HAVE_SYS_TYPES_H
  51. +#include <sys/types.h>
  52. +#endif
  53. #include "../include/sane/sane.h"
  54. #define BACKEND_NAME hp5590
  55. --- a/backend/epsonds-io.c
  56. +++ b/backend/epsonds-io.c
  57. @@ -16,6 +16,9 @@
  58. #include "sane/config.h"
  59. #include <ctype.h>
  60. #include <unistd.h> /* sleep */
  61. +#ifdef HAVE_SYS_TYPES_H
  62. +#include <sys/types.h>
  63. +#endif
  64. #include "epsonds.h"
  65. #include "epsonds-io.h"