- Timestamp:
- Oct 27, 2013, 9:13:08 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain_erase.c
r1 r443 71 71 /* The configure options (#defines) for the Kernel 72 72 */ 73 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 74 75 #if SH_KERNEL_NUMERIC >= KERNEL_VERSION(2,6,33) 76 #include <generated/autoconf.h> 77 #else 78 #if SH_KERNEL_NUMERIC >= KERNEL_VERSION(2,6,19) 79 #include <linux/autoconf.h> 80 #else 73 81 #include <linux/config.h> 74 75 82 #ifdef CONFIG_MODVERSIONS 76 83 #include <linux/modversions.h> 84 #endif 85 #endif 77 86 #endif 78 87 -
trunk/src/samhain_hide.c
r331 r443 101 101 102 102 #ifndef LINUX26 103 #ifndef __KERNEL__ 103 104 #define __KERNEL__ 105 #endif 106 #ifndef MODULE 104 107 #define MODULE 108 #endif 105 109 #endif 106 110 #define LINUX … … 137 141 #endif 138 142 139 #if ndef LINUX26143 #if SH_KERNEL_NUMERIC < KERNEL_VERSION(2,6,0) 140 144 #ifdef CONFIG_MODVERSIONS 141 145 #include <linux/modversions.h> 142 146 #endif 143 #endif 144 147 #else 148 #ifndef LINUX26 149 #define LINUX26 150 #endif 151 #endif 145 152 146 153 #ifdef LINUX26 … … 179 186 /* Include for lock_kernel(). 180 187 */ 188 #if SH_KERNEL_NUMERIC < KERNEL_VERSION(3,0,0) 181 189 #include <linux/smp_lock.h> 190 #else 191 static inline void lock_kernel(void) { } 192 static inline void unlock_kernel(void) { } 193 #endif 182 194 183 195 #if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
Note:
See TracChangeset
for help on using the changeset viewer.