diff -urN a/tcsim/Makefile.klib b/tcsim/Makefile.klib --- a/tcsim/Makefile.klib 2002-09-12 18:52:42.000000000 +0200 +++ b/tcsim/Makefile.klib 2004-01-23 10:08:29.000000000 +0100 @@ -14,7 +14,7 @@ cls_api.o cls_fw.o cls_rsvp.o cls_rsvp6.o cls_tcindex.o cls_u32.o \ estimator.o police.o sch_api.o sch_generic.o \ sch_cbq.o sch_dsmark.o sch_fifo.o sch_gred.o sch_prio.o sch_red.o sch_sfq.o \ - sch_tbf.o sch_ingress.o sch_htb.o + sch_tbf.o sch_ingress.o sch_htb.o sch_hfsc.o CFLAGS=-Wall $(CC_OPTS) -O -D__KERNEL__ -nostdinc -Iinclude \ -I`dirname \`gcc -print-libgcc-file-name\``/include -I. # -Ilinux/include \ diff -urN a/tcsim/setup.klib b/tcsim/setup.klib --- a/tcsim/setup.klib 2003-11-22 10:44:20.000000000 +0100 +++ b/tcsim/setup.klib 2004-01-23 10:08:52.000000000 +0100 @@ -53,6 +53,12 @@ touch sch_htb.c fi +if [ -r $KSRC/net/sched/sch_hfsc.c ]; then + cp $KSRC/net/sched/sch_hfsc.c sch_hfsc.c +else + touch sch_hfsc.c +fi + # Optional .h files cp_opt() @@ -299,7 +305,6 @@ /* deal with these later */ #undef CONFIG_NET_SCH_CSZ #undef CONFIG_NET_SCH_HPFQ -#undef CONFIG_NET_SCH_HFSC #undef CONFIG_NET_SCH_TEQL #endif @@ -428,6 +433,7 @@ #define _LINUX_INIT_H #define __init +#define __exit #endif EOF @@ -788,11 +794,25 @@ #define NULL ((void *) 0) /* gotta do this somewhere ... */ +typedef unsigned char u_int8_t; +typedef unsigned short u_int16_t; +typedef unsigned int u_int32_t; +typedef unsigned long long u_int64_t; + #endif /* __KERNEL__ */ #endif EOF +# ----- include/linux/timer.h ------------------------------------------------- + +cat <include/linux/timer.h +#ifndef _LINUX_TIMER_H +#define _LINUX_TIMER_H + +#endif +EOF + # ----- include/asm/atomic.h -------------------------------------------------- cat <include/asm/atomic.h @@ -839,6 +859,16 @@ #endif EOF +# ----- include/asm/div64.h --------------------------------------------------- +cat <include/asm/div64.h +#ifndef _ASM_DIV64_H +#define _ASM_DIV64_H + +#define do_div(a,b) ((a) /= (b)) + +#endif +EOF + # ----------------------------------------------------------------------------- # for iproute2