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.

93 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sysklogd/module_h_fix_26headers.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. diff -Naur sysklogd-1.4.1-orig/ksym_mod.c sysklogd-1.4.1/ksym_mod.c
  17. --- sysklogd-1.4.1-orig/ksym_mod.c 2000-09-12 21:15:28.000000000 +0000
  18. +++ sysklogd-1.4.1/ksym_mod.c 2003-08-17 19:14:38.000000000 +0000
  19. @@ -93,7 +93,7 @@
  20. #include <linux/time.h>
  21. #include <linux/module.h>
  22. #else /* __GLIBC__ */
  23. -#include <linux/module.h>
  24. +#include "module.h"
  25. extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
  26. extern int get_kernel_syms __P ((struct kernel_sym *__table));
  27. #endif /* __GLIBC__ */
  28. diff -Naur sysklogd-1.4.1-orig/module.h sysklogd-1.4.1/module.h
  29. --- sysklogd-1.4.1-orig/module.h 1970-01-01 00:00:00.000000000 +0000
  30. +++ sysklogd-1.4.1/module.h 2003-08-17 19:14:38.000000000 +0000
  31. @@ -0,0 +1,62 @@
  32. +/* this file eliminates the need to include <kernel/module.h> */
  33. +/* Module definitions for klogd's module support */
  34. +struct kernel_sym
  35. +{
  36. + unsigned long value;
  37. + char name[60];
  38. +};
  39. +
  40. +struct module_symbol
  41. +{
  42. + unsigned long value;
  43. + const char *name;
  44. +};
  45. +
  46. +struct module_ref
  47. +{
  48. + struct module *dep; /* "parent" pointer */
  49. + struct module *ref; /* "child" pointer */
  50. + struct module_ref *next_ref;
  51. +};
  52. +
  53. +struct module_info
  54. +{
  55. + unsigned long addr;
  56. + unsigned long size;
  57. + unsigned long flags;
  58. + long usecount;
  59. +};
  60. +
  61. +
  62. +typedef struct { volatile int counter; } atomic_t;
  63. +
  64. +struct module
  65. +{
  66. + unsigned long size_of_struct; /* == sizeof(module) */
  67. + struct module *next;
  68. + const char *name;
  69. + unsigned long size;
  70. +
  71. + union
  72. + {
  73. + atomic_t usecount;
  74. + long pad;
  75. + } uc; /* Needs to keep its size - so says rth */
  76. +
  77. + unsigned long flags; /* AUTOCLEAN et al */
  78. +
  79. + unsigned nsyms;
  80. + unsigned ndeps;
  81. +
  82. + struct module_symbol *syms;
  83. + struct module_ref *deps;
  84. + struct module_ref *refs;
  85. + int (*init)(void);
  86. + void (*cleanup)(void);
  87. + const struct exception_table_entry *ex_table_start;
  88. + const struct exception_table_entry *ex_table_end;
  89. +#ifdef __alpha__
  90. + unsigned long gp;
  91. +#endif
  92. +};
  93. +