OpenSDE Packages Database (without history before r20070)
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.

65 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/mdadm/0001-mdadm-musl-remove-deprecated-values.h.patch
  5. # Copyright (C) 2012 - 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- a/super-ddf.c 2012-11-25 01:35:58.911682709 +0100
  17. +++ b/super-ddf.c 2012-11-24 23:24:00.900425167 +0100
  18. @@ -29,7 +29,6 @@
  19. #include "mdadm.h"
  20. #include "mdmon.h"
  21. #include "sha1.h"
  22. -#include <values.h>
  23. /* a non-official T10 name for creation GUIDs */
  24. static char T10[] = "Linux-MD";
  25. @@ -971,13 +970,13 @@
  26. { DDF_RAID5E, LEVEL_UNSUPPORTED },
  27. { DDF_RAID5EE, LEVEL_UNSUPPORTED },
  28. { DDF_RAID6, 6},
  29. - { MAXINT, MAXINT }
  30. + { INT_MAX, INT_MAX }
  31. };
  32. static int map_num1(struct num_mapping *map, int num)
  33. {
  34. int i;
  35. - for (i=0 ; map[i].num1 != MAXINT; i++)
  36. + for (i=0 ; map[i].num1 != INT_MAX; i++)
  37. if (map[i].num1 == num)
  38. break;
  39. return map[i].num2;
  40. @@ -2641,10 +2640,10 @@
  41. if (!dev) {
  42. /* Initial sanity check. Exclude illegal levels. */
  43. int i;
  44. - for (i=0; ddf_level_num[i].num1 != MAXINT; i++)
  45. + for (i=0; ddf_level_num[i].num1 != INT_MAX; i++)
  46. if (ddf_level_num[i].num2 == level)
  47. break;
  48. - if (ddf_level_num[i].num1 == MAXINT) {
  49. + if (ddf_level_num[i].num1 == INT_MAX) {
  50. if (verbose)
  51. fprintf(stderr, Name ": DDF does not support level %d arrays\n",
  52. level);
  53. --- a/super-intel.c 2012-11-24 23:26:46.412202198 +0100
  54. +++ b/super-intel.c 2012-11-24 23:27:25.229092400 +0100
  55. @@ -22,7 +22,6 @@
  56. #include "mdmon.h"
  57. #include "sha1.h"
  58. #include "platform-intel.h"
  59. -#include <values.h>
  60. #include <scsi/sg.h>
  61. #include <ctype.h>
  62. #include <dirent.h>