diff --git a/BasiliskII/src/Unix/Linux/NetDriver/Makefile b/BasiliskII/src/Unix/Linux/NetDriver/Makefile index f698752d..7d45a452 100644 --- a/BasiliskII/src/Unix/Linux/NetDriver/Makefile +++ b/BasiliskII/src/Unix/Linux/NetDriver/Makefile @@ -3,7 +3,7 @@ ## System specific configuration CC = cc CPPFLAGS = -I. -I/usr/src/linux/include -CFLAGS = -O2 -Wall -fno-builtin -D__KERNEL__ -DMODULE +CFLAGS = -O2 -Wall -D__KERNEL__ -DMODULE -DLINUX ASFLAGS = LDFLAGS = LIBS = diff --git a/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c b/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c index 1ec79bd2..6580f2e8 100644 --- a/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c +++ b/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c @@ -18,9 +18,18 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include #include #include + +#ifdef CONFIG_MODVERSIONS +#define MODVERSIONS +#include +#endif + +#ifdef CONFIG_SMP +#define __SMP__ +#endif + #include #include #include @@ -36,6 +45,9 @@ #include #include +MODULE_AUTHOR("Christian Bauer"); +MODULE_DESCRIPTION("Pseudo ethernet device for emulators"); + /* Compatibility glue */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) #define LINUX_24 @@ -138,14 +150,11 @@ int init_module(void) * Deinitialize module */ -int cleanup_module(void) +void cleanup_module(void) { - int ret; - /* Unregister driver */ - ret = misc_deregister(&sheep_net_device); + misc_deregister(&sheep_net_device); D(bug("Sheep net driver removed\n")); - return ret; }