source:
scripts/patches/sysklogd-1.4.1-kernel_headers-1.patch@
966d3087
Last change on this file since 966d3087 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.8 KB |
-
sysklogd-1.4.
Submitted By: DJ Lucas (dj_at_lucasit_dot_com) Date: 2003-08-17 Initial Package Version: 1.4.1 Origin: Linux Standard Base Project Description: This patch fixes a dependacy on kernel includes. Specifically, it removes the need to have kernel/module.h around. It is usable when building a linux-2.6 based system to get around compile problems. Source link: http://freestandards.org/pipermail/lsb-impl/2002-October/000466.html diff -Naur sysklogd-1.4.1-orig/Makefile sysklogd-1.4.1/Makefile
old new 3 3 CC= gcc 4 4 #CFLAGS= -g -DSYSV -Wall 5 5 #LDFLAGS= -g 6 CFLAGS= $(RPM_OPT_FLAGS) - O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce6 CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall 7 7 LDFLAGS= -s 8 8 9 9 # Look where your install program is. -
sysklogd-1.4.
diff -Naur sysklogd-1.4.1-orig/ksym_mod.c sysklogd-1.4.1/ksym_mod.c
old new 93 93 #include <linux/time.h> 94 94 #include <linux/module.h> 95 95 #else /* __GLIBC__ */ 96 #include <linux/module.h>96 #include "module.h" 97 97 extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); 98 98 extern int get_kernel_syms __P ((struct kernel_sym *__table)); 99 99 #endif /* __GLIBC__ */ -
sysklogd-1.4.
diff -Naur sysklogd-1.4.1-orig/module.h sysklogd-1.4.1/module.h
old new 1 /* this file eliminates the need to include <kernel/module.h> */ 2 /* Module definitions for klogd's module support */ 3 struct kernel_sym 4 { 5 unsigned long value; 6 char name[60]; 7 }; 8 9 struct module_symbol 10 { 11 unsigned long value; 12 const char *name; 13 }; 14 15 struct module_ref 16 { 17 struct module *dep; /* "parent" pointer */ 18 struct module *ref; /* "child" pointer */ 19 struct module_ref *next_ref; 20 }; 21 22 struct module_info 23 { 24 unsigned long addr; 25 unsigned long size; 26 unsigned long flags; 27 long usecount; 28 }; 29 30 31 typedef struct { volatile int counter; } atomic_t; 32 33 struct module 34 { 35 unsigned long size_of_struct; /* == sizeof(module) */ 36 struct module *next; 37 const char *name; 38 unsigned long size; 39 40 union 41 { 42 atomic_t usecount; 43 long pad; 44 } uc; /* Needs to keep its size - so says rth */ 45 46 unsigned long flags; /* AUTOCLEAN et al */ 47 48 unsigned nsyms; 49 unsigned ndeps; 50 51 struct module_symbol *syms; 52 struct module_ref *deps; 53 struct module_ref *refs; 54 int (*init)(void); 55 void (*cleanup)(void); 56 const struct exception_table_entry *ex_table_start; 57 const struct exception_table_entry *ex_table_end; 58 #ifdef __alpha__ 59 unsigned long gp; 60 #endif 61 }; 62
Note:
See TracBrowser
for help on using the repository browser.