|
From: Gordon M. <gm...@us...> - 2001-03-07 18:53:24
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
bluetooth.c 1.142 1.143=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
--Fixed last changes to work for linux 2.0.x (hopefully...)
The diff of the modified file(s):
--- bluetooth.c 2001/03/07 18:13:48 1.142
+++ bluetooth.c 2001/03/07 18:54:56 1.143
@@ -50,9 +50,15 @@
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/timer.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)
+# define module_init(x) int init_module(void) { return x(); }
+# define module_exit(x) void cleanup_module(void) { x(); }
+#else
#include <linux/init.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
#include <linux/kcomp.h>
+# endif
#endif
=20
#include <linux/bluetooth/bluetooth.h>
|