From: Steven N. H. <sh...@ad...> - 2002-07-23 00:05:47
|
All, This lets sheep_net.o build with versioned symbols (if necessary) and makes newer kernels stop griping about kernel pollution. Steve --- sheep_net.c.orig Tue Jan 15 09:58:39 2002 +++ sheep_net.c Fri Jul 19 07:54:37 2002 @@ -18,6 +18,26 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef __KERNEL__ +#define __KERNEL__ +#endif + +#ifndef MODULE +#define MODULE +#endif + +/* determine whether to use checksummed versions of kernel symbols */ +#include <linux/config.h> +#ifdef CONFIG_MODVERSIONS +#define MODVERSIONS +#include <linux/modversions.h> +#endif + +/* modversions.h redefines kernel symbols. Now include other headers */ +#include <linux/kernel.h> +#include <linux/module.h> +#include <linux/init.h> + #include <linux/kernel.h> #include <linux/module.h> #include <linux/version.h> @@ -626,3 +646,5 @@ kfree_skb(skb); return 0; } + +MODULE_LICENSE("GPL"); |