#include #include #include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7) static int system_state = 1; EXPORT_SYMBOL(system_state); #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8) size_t strcspn(const char *s, const char *reject) { const char *p; const char *r; size_t count = 0; for (p = s; *p != '\0'; ++p) { for (r = reject; *r != '\0'; ++r) { if (*p == *r) return count; } ++count; } return count; } EXPORT_SYMBOL(strcspn); #endif