2007-08-09 22:32:10 +02:00
|
|
|
---
|
|
|
|
ksym_mod.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/ksym_mod.c
|
|
|
|
+++ b/ksym_mod.c
|
|
|
|
@@ -91,7 +91,6 @@
|
2006-12-19 00:17:53 +01:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <paths.h>
|
2007-08-09 22:32:10 +02:00
|
|
|
-#include <asm/atomic.h>
|
2006-12-19 00:17:53 +01:00
|
|
|
#include <limits.h>
|
|
|
|
/* #include <linux/version.h> */
|
2007-08-09 22:32:10 +02:00
|
|
|
|
|
|
|
@@ -129,6 +128,8 @@ err:
|
|
|
|
|
|
|
|
#define getsyms get_kernel_syms
|
|
|
|
|
|
|
|
+typedef struct { volatile int counter; } atomic_t;
|
|
|
|
+
|
|
|
|
struct module
|
|
|
|
{
|
|
|
|
size_t size_of_struct; /* == sizeof(module) */
|