dd_rescue-1.99-musl.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --- a/ffs.h 2016-02-09 03:37:14.422639513 +0000
  2. +++ b/ffs.h 2016-02-09 03:38:59.843641094 +0000
  3. @@ -27,7 +27,8 @@
  4. #ifdef HAVE_ENDIAN_H
  5. #include <endian.h>
  6. #endif
  7. -
  8. +/* __WORDSIZE */
  9. +#include <sys/reg.h>
  10. #ifdef HAVE_FFS
  11. # define myffs(x) ffs(x)
  12. --- a/fiemap.h 2016-02-09 03:45:05.550646582 +0000
  13. +++ b/fiemap.h 2016-02-09 03:45:56.683647349 +0000
  14. @@ -31,3 +31,4 @@
  15. #endif /* _FIEMAPH */
  16. +#include <sys/reg.h>
  17. --- a/libddr_hash.c 2016-02-09 03:49:16.334650345 +0000
  18. +++ b/libddr_hash.c 2016-02-09 03:50:01.309651020 +0000
  19. @@ -32,6 +32,7 @@
  20. #include <errno.h>
  21. #include <unistd.h>
  22. #include <fcntl.h>
  23. +#include <sys/reg.h>
  24. #include <netinet/in.h> /* For ntohl/htonl */
  25. #include <endian.h>
  26. --- a/libddr_lzo.c 2016-02-09 03:52:31.775653278 +0000
  27. +++ b/libddr_lzo.c 2016-02-09 03:52:53.537653604 +0000
  28. @@ -26,6 +26,7 @@
  29. #include <errno.h>
  30. #include <netinet/in.h>
  31. #include <sys/stat.h>
  32. +#include <sys/reg.h>
  33. #include <signal.h>
  34. #include <lzo/lzo1x.h>
  35. #include <lzo/lzo1y.h>
  36. --- a/libddr_null.c 2016-02-09 03:54:04.110654663 +0000
  37. +++ b/libddr_null.c 2016-02-09 03:54:18.018654872 +0000
  38. @@ -10,6 +10,7 @@
  39. #include "ddr_ctrl.h"
  40. #include <string.h>
  41. #include <stdlib.h>
  42. +#include <sys/reg.h>
  43. /* fwd decl */
  44. extern ddr_plugin_t ddr_plug;
  45. --- a/sha512.h 2016-02-09 03:55:33.209656000 +0000
  46. +++ b/sha512.h 2016-02-09 03:56:39.923657001 +0000
  47. @@ -2,6 +2,8 @@
  48. #define _SHA512_H
  49. #include "hash.h"
  50. +/* __WORDSIZE */
  51. +#include <sys/reg.h>
  52. void sha512_init(hash_t *ctx);
  53. void sha384_init(hash_t *ctx);
  54. --- a/fmt_no.h 2016-02-09 04:52:13.760707026 +0000
  55. +++ b/fmt_no.h 2016-02-09 04:52:50.874707583 +0000
  56. @@ -1,4 +1,6 @@
  57. /** Decl for int to str conversion with highlighting */
  58. +#define _GNU_SOURCE
  59. +#include <fcntl.h>
  60. #ifndef _FMT_NO_H
  61. #define _FMT_NO_H
  62. --- a/fstrim.h 2016-02-09 04:55:43.871710178 +0000
  63. +++ b/fstrim.h 2016-02-09 04:56:11.270710590 +0000
  64. @@ -1,3 +1,6 @@
  65. +#define _GNU_SOURCE
  66. +#include <fcntl.h>
  67. +
  68. #ifndef _FSTRIM_H
  69. #define _FSTRIM_H
  70. --- a/ddr_ctrl.h 2016-02-09 04:58:08.442712348 +0000
  71. +++ b/ddr_ctrl.h 2016-02-09 04:58:50.842712984 +0000
  72. @@ -7,6 +7,9 @@
  73. * License: GNU GPLv2 or v3
  74. */
  75. +#define _GNU_SOURCE
  76. +#include <fcntl.h>
  77. +
  78. #ifndef _DDR_CTRL_H
  79. #define _DDR_CTRL_H