initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / base / sysklogd / kernel_headers.patch
1 --- sysklogd-1.4.1-orig/Makefile        1998-10-12 20:25:15.000000000 +0000
2 +++ sysklogd-1.4.1/Makefile     2003-08-17 19:14:38.000000000 +0000
3 @@ -3,7 +3,7 @@
4  CC= gcc
5  #CFLAGS= -g -DSYSV -Wall
6  #LDFLAGS= -g
7 -CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
8 +CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall
9  LDFLAGS= -s
10  
11  # Look where your install program is.
12 --- sysklogd-1.4.1-orig/ksym_mod.c      2000-09-12 21:15:28.000000000 +0000
13 +++ sysklogd-1.4.1/ksym_mod.c   2003-08-17 19:14:38.000000000 +0000
14 @@ -93,7 +93,7 @@
15  #include <linux/time.h>
16  #include <linux/module.h>
17  #else /* __GLIBC__ */
18 -#include <linux/module.h>
19 +#include "module.h"
20  extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
21  extern int get_kernel_syms __P ((struct kernel_sym *__table));
22  #endif /* __GLIBC__ */
23 --- sysklogd-1.4.1-orig/module.h        1970-01-01 00:00:00.000000000 +0000
24 +++ sysklogd-1.4.1/module.h     2003-08-17 19:14:38.000000000 +0000
25 @@ -0,0 +1,62 @@
26 +/* this file eliminates the need to include <kernel/module.h> */
27 +/* Module definitions for klogd's module support */
28 +struct kernel_sym
29 +{
30 +               unsigned long value;
31 +               char name[60];
32 +};
33 +
34 +struct module_symbol
35 +{
36 +       unsigned long value;
37 +       const char *name;
38 +};
39 +
40 +struct module_ref
41 +{
42 +       struct module *dep;     /* "parent" pointer */
43 +       struct module *ref;     /* "child" pointer */
44 +       struct module_ref *next_ref;
45 +};
46 +
47 +struct module_info
48 +{
49 +       unsigned long addr;
50 +       unsigned long size;
51 +       unsigned long flags;
52 +       long usecount;
53 +};
54 +
55 +
56 +typedef struct { volatile int counter; } atomic_t;
57 +
58 +struct module
59 +{
60 +       unsigned long size_of_struct;   /* == sizeof(module) */
61 +       struct module *next;
62 +       const char *name;
63 +       unsigned long size;
64 +       
65 +       union
66 +       {
67 +               atomic_t usecount;
68 +               long pad;
69 +        } uc;                           /* Needs to keep its size - so says rth */
70 +       
71 +       unsigned long flags;            /* AUTOCLEAN et al */
72 +       
73 +       unsigned nsyms;
74 +       unsigned ndeps;
75 +       
76 +       struct module_symbol *syms;
77 +       struct module_ref *deps;
78 +       struct module_ref *refs;
79 +       int (*init)(void);
80 +       void (*cleanup)(void);
81 +       const struct exception_table_entry *ex_table_start;
82 +       const struct exception_table_entry *ex_table_end;
83 +#ifdef __alpha__
84 +       unsigned long gp;
85 +#endif
86 +};
87 +