pass HOST_ variables, not BUILD_
[buildroot.git] / package / sysklogd / sysklogd.patch
blob101db0bc1074032a6eaf2d762cb8f22122662fdb
1 --- sysklogd-1.4.1/module.h.orig 1970-01-01 10:00:00.000000000 +1000
2 +++ sysklogd-1.4.1/module.h 2005-11-24 01:40:09.000000000 +1000
3 @@ -0,0 +1,62 @@
4 +/* this file eliminates the need to include <kernel/module.h> */
5 +/* Module definitions for klogd's module support */
6 +struct kernel_sym
7 +{
8 + unsigned long value;
9 + char name[60];
10 +};
12 +struct module_symbol
14 + unsigned long value;
15 + const char *name;
16 +};
18 +struct module_ref
20 + struct module *dep; /* "parent" pointer */
21 + struct module *ref; /* "child" pointer */
22 + struct module_ref *next_ref;
23 +};
25 +struct module_info
27 + unsigned long addr;
28 + unsigned long size;
29 + unsigned long flags;
30 + long usecount;
31 +};
34 +typedef struct { volatile int counter; } atomic_t;
36 +struct module
38 + unsigned long size_of_struct; /* == sizeof(module) */
39 + struct module *next;
40 + const char *name;
41 + unsigned long size;
43 + union
44 + {
45 + atomic_t usecount;
46 + long pad;
47 + } uc; /* Needs to keep its size - so says rth */
49 + unsigned long flags; /* AUTOCLEAN et al */
51 + unsigned nsyms;
52 + unsigned ndeps;
54 + struct module_symbol *syms;
55 + struct module_ref *deps;
56 + struct module_ref *refs;
57 + int (*init)(void);
58 + void (*cleanup)(void);
59 + const struct exception_table_entry *ex_table_start;
60 + const struct exception_table_entry *ex_table_end;
61 +#ifdef __alpha__
62 + unsigned long gp;
63 +#endif
64 +};
67 --- sysklogd-1.4.1/ksym_mod.c.orig 2005-11-24 23:15:01.000000000 +1000
68 +++ sysklogd-1.4.1/ksym_mod.c 2005-11-24 23:11:54.000000000 +1000
69 @@ -89,17 +89,22 @@
70 #include <errno.h>
71 #include <sys/fcntl.h>
72 #include <sys/stat.h>
73 +#include <linux/linkage.h>
74 +#include <linux/version.h>
75 #if !defined(__GLIBC__)
76 #include <linux/time.h>
77 #include <linux/module.h>
78 #else /* __GLIBC__ */
79 +#if LINUX_VERSION_CODE >= 0x20500
80 +#include "module.h"
81 +#else
82 #include <linux/module.h>
83 +#endif
84 extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
85 extern int get_kernel_syms __P ((struct kernel_sym *__table));
86 #endif /* __GLIBC__ */
87 #include <stdarg.h>
88 #include <paths.h>
89 -#include <linux/version.h>
91 #include "klogd.h"
92 #include "ksyms.h"