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.

86 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dietlibc/patches/pkg_udev.patch
  5. # Copyright (C) 2009 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. --- udev-128/extras/scsi_id/scsi.h.orig 2008-08-26 09:21:40.000000000 +0200
  17. +++ udev-128/extras/scsi_id/scsi.h 2008-09-17 16:22:22.000000000 +0200
  18. @@ -70,9 +70,9 @@
  19. #define SCSI_ID_ASCII 2
  20. struct scsi_id_search_values {
  21. - u_char id_type;
  22. - u_char naa_type;
  23. - u_char code_set;
  24. + unsigned char id_type;
  25. + unsigned char naa_type;
  26. + unsigned char code_set;
  27. };
  28. /*
  29. --- udev-128/udev/udevd.c.orig 2008-09-10 21:37:29.000000000 +0200
  30. +++ udev-128/udev/udevd.c 2008-09-17 16:04:48.000000000 +0200
  31. @@ -47,6 +47,10 @@
  32. #include "udev.h"
  33. #include "udev_rules.h"
  34. +#ifndef SO_RCVBUFFORCE
  35. +#define SO_RCVBUFFORCE 33
  36. +#endif
  37. +
  38. #define UDEVD_PRIORITY -4
  39. #define UDEV_PRIORITY -2
  40. --- ./udev/lib/libudev-monitor.c.orig 2008-11-01 20:09:10.000000000 +0100
  41. +++ ./udev/lib/libudev-monitor.c 2008-12-06 14:17:16.000000000 +0100
  42. @@ -32,6 +32,10 @@
  43. #include "libudev.h"
  44. #include "libudev-private.h"
  45. +#ifndef SO_RCVBUFFORCE
  46. +#define SO_RCVBUFFORCE 33
  47. +#endif
  48. +
  49. struct udev_monitor {
  50. struct udev *udev;
  51. int refcount;
  52. --- ./udev/udev-util.c.orig 2008-11-06 02:56:15.000000000 +0100
  53. +++ ./udev/udev-util.c 2008-12-06 20:28:36.000000000 +0100
  54. @@ -127,7 +127,11 @@
  55. uid_t util_lookup_user(struct udev *udev, const char *user)
  56. {
  57. char *endptr;
  58. - int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
  59. +#ifdef _SC_GETPW_R_SIZE_MAX
  60. + int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
  61. +#else
  62. + int buflen = 2048;
  63. +#endif
  64. char buf[buflen];
  65. struct passwd pwbuf;
  66. struct passwd *pw;
  67. @@ -153,7 +157,11 @@
  68. extern gid_t util_lookup_group(struct udev *udev, const char *group)
  69. {
  70. char *endptr;
  71. - int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
  72. +#ifdef _SC_GETGR_R_SIZE_MAX
  73. + int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
  74. +#else
  75. + int buflen = 2048;
  76. +#endif
  77. char buf[buflen];
  78. struct group grbuf;
  79. struct group *gr;