source: scripts/patches/sysklogd-1.4.1-kernel_headers-1.patch@ f013de9

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f013de9 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
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  
    33CC= gcc
    44#CFLAGS= -g -DSYSV -Wall
    55#LDFLAGS= -g
    6 CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
     6CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall
    77LDFLAGS= -s
    88
    99# 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  
    9393#include <linux/time.h>
    9494#include <linux/module.h>
    9595#else /* __GLIBC__ */
    96 #include <linux/module.h>
     96#include "module.h"
    9797extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
    9898extern int get_kernel_syms __P ((struct kernel_sym *__table));
    9999#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 */
     3struct kernel_sym
     4{
     5                unsigned long value;
     6                char name[60];
     7};
     8
     9struct module_symbol
     10{
     11        unsigned long value;
     12        const char *name;
     13};
     14
     15struct module_ref
     16{
     17        struct module *dep;     /* "parent" pointer */
     18        struct module *ref;     /* "child" pointer */
     19        struct module_ref *next_ref;
     20};
     21
     22struct module_info
     23{
     24        unsigned long addr;
     25        unsigned long size;
     26        unsigned long flags;
     27        long usecount;
     28};
     29
     30
     31typedef struct { volatile int counter; } atomic_t;
     32
     33struct 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.