Fix duplicate for sys_create_module

Include linux/in6.h only for Linux MIPS
This commit is contained in:
Wichert Akkerman 1999-11-01 19:53:31 +00:00
parent 505e176ded
commit 2f473da12b
5 changed files with 19 additions and 25 deletions

View File

@ -1,3 +1,9 @@
Mon Nov 1 20:52:08 CET 1999 Wichert Akkerman <wakkerma@debian.org>
* Move Linux kernelmodule-functions from system.c to bjm.c and
remove duplicate for sys_create_module
* Play with #ifdef's in net.c to get IPv6 right on Linux MIPS
Sun Oct 31 22:03:00 CET 1999 Wichert Akkerman <wakkerma@debian.org>
* Merge Linux mips patch from Florian Lohoff <flo@rfc822.org>

10
bjm.c
View File

@ -62,5 +62,15 @@ struct tcb *tcp;
return RVAL_HEX;
}
int
sys_init_module(tcp)
struct tcb *tcp;
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
tprintf(", %#lx", tcp->u_arg[1]);
}
return 0;
}
#endif /* LINUX */

View File

@ -18,5 +18,5 @@ fi
autoheader
autoconf
./configure $@

3
net.c
View File

@ -45,10 +45,11 @@
#endif
#endif /* LINUX */
#if defined(LINUX) && defined(MIPS)
#if defined( HAVE_LINUX_IN6_H)
#include <linux/in6.h>
#endif
#endif
#ifndef PF_UNSPEC
#define PF_UNSPEC AF_UNSPEC

View File

@ -1602,26 +1602,3 @@ struct tcb *tcp;
}
#endif
#ifdef LINUX
int
sys_create_module(tcp)
struct tcb *tcp;
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
tprintf(", %lu", tcp->u_arg[1]);
}
return RVAL_HEX;
}
int
sys_init_module(tcp)
struct tcb *tcp;
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
tprintf(", %#lx", tcp->u_arg[1]);
}
return 0;
}
#endif