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.

74 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dietlibc/patches/pkg_hotplug2.patch
  5. # Copyright (C) 2007 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. Description: Unlike struct dirent64, struct dirent has no d_type on dietlibc.
  17. --- ./linux24_compat/hotplug2-coldplug-2.4.c.orig 2007-10-05 03:42:18.000000000 +0200
  18. +++ ./linux24_compat/hotplug2-coldplug-2.4.c 2007-10-05 03:51:16.000000000 +0200
  19. @@ -160,7 +160,7 @@
  20. DIR *procdir, *pcidir;
  21. FILE *item;
  22. - struct dirent *cur_bus, *cur_device;
  23. + struct dirent64 *cur_bus, *cur_device;
  24. procdir = opendir("/proc/bus/pci");
  25. if (procdir == NULL) {
  26. @@ -168,7 +168,7 @@
  27. return;
  28. }
  29. - while ((cur_bus = readdir(procdir)) != NULL) {
  30. + while ((cur_bus = readdir64(procdir)) != NULL) {
  31. if (cur_bus->d_type != DT_DIR)
  32. continue;
  33. @@ -179,7 +179,7 @@
  34. snprintf(pci_dir_name, 255, "/proc/bus/pci/%s", cur_bus->d_name);
  35. pcidir = opendir(pci_dir_name);
  36. - while ((cur_device = readdir(pcidir)) != NULL) {
  37. + while ((cur_device = readdir64(pcidir)) != NULL) {
  38. if (cur_device->d_type != DT_REG)
  39. continue;
  40. @@ -257,7 +257,7 @@
  41. DIR *procdir, *usbdir;
  42. FILE *item;
  43. - struct dirent *cur_bus, *cur_device;
  44. + struct dirent64 *cur_bus, *cur_device;
  45. procdir = opendir("/proc/bus/usb");
  46. if (procdir == NULL) {
  47. @@ -265,7 +265,7 @@
  48. return;
  49. }
  50. - while ((cur_bus = readdir(procdir)) != NULL) {
  51. + while ((cur_bus = readdir64(procdir)) != NULL) {
  52. if (cur_bus->d_type != DT_DIR)
  53. continue;
  54. @@ -276,7 +276,7 @@
  55. snprintf(usb_dir_name, 255, "/proc/bus/usb/%s", cur_bus->d_name);
  56. usbdir = opendir(usb_dir_name);
  57. - while ((cur_device = readdir(usbdir)) != NULL) {
  58. + while ((cur_device = readdir64(usbdir)) != NULL) {
  59. if (cur_device->d_type != DT_REG)
  60. continue;