mirror of the now-defunct rocklinux.org
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.

97 lines
2.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/sysklogd/module_h_fix_26headers.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Naur sysklogd-1.4.1-orig/ksym_mod.c sysklogd-1.4.1/ksym_mod.c
  20. --- sysklogd-1.4.1-orig/ksym_mod.c 2000-09-12 21:15:28.000000000 +0000
  21. +++ sysklogd-1.4.1/ksym_mod.c 2003-08-17 19:14:38.000000000 +0000
  22. @@ -93,7 +93,7 @@
  23. #include <linux/time.h>
  24. #include <linux/module.h>
  25. #else /* __GLIBC__ */
  26. -#include <linux/module.h>
  27. +#include "module.h"
  28. extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
  29. extern int get_kernel_syms __P ((struct kernel_sym *__table));
  30. #endif /* __GLIBC__ */
  31. diff -Naur sysklogd-1.4.1-orig/module.h sysklogd-1.4.1/module.h
  32. --- sysklogd-1.4.1-orig/module.h 1970-01-01 00:00:00.000000000 +0000
  33. +++ sysklogd-1.4.1/module.h 2003-08-17 19:14:38.000000000 +0000
  34. @@ -0,0 +1,62 @@
  35. +/* this file eliminates the need to include <kernel/module.h> */
  36. +/* Module definitions for klogd's module support */
  37. +struct kernel_sym
  38. +{
  39. + unsigned long value;
  40. + char name[60];
  41. +};
  42. +
  43. +struct module_symbol
  44. +{
  45. + unsigned long value;
  46. + const char *name;
  47. +};
  48. +
  49. +struct module_ref
  50. +{
  51. + struct module *dep; /* "parent" pointer */
  52. + struct module *ref; /* "child" pointer */
  53. + struct module_ref *next_ref;
  54. +};
  55. +
  56. +struct module_info
  57. +{
  58. + unsigned long addr;
  59. + unsigned long size;
  60. + unsigned long flags;
  61. + long usecount;
  62. +};
  63. +
  64. +
  65. +typedef struct { volatile int counter; } atomic_t;
  66. +
  67. +struct module
  68. +{
  69. + unsigned long size_of_struct; /* == sizeof(module) */
  70. + struct module *next;
  71. + const char *name;
  72. + unsigned long size;
  73. +
  74. + union
  75. + {
  76. + atomic_t usecount;
  77. + long pad;
  78. + } uc; /* Needs to keep its size - so says rth */
  79. +
  80. + unsigned long flags; /* AUTOCLEAN et al */
  81. +
  82. + unsigned nsyms;
  83. + unsigned ndeps;
  84. +
  85. + struct module_symbol *syms;
  86. + struct module_ref *deps;
  87. + struct module_ref *refs;
  88. + int (*init)(void);
  89. + void (*cleanup)(void);
  90. + const struct exception_table_entry *ex_table_start;
  91. + const struct exception_table_entry *ex_table_end;
  92. +#ifdef __alpha__
  93. + unsigned long gp;
  94. +#endif
  95. +};
  96. +