blob: 19a65fe60c010c70ac6a8ee14d1c81db2ef2d8a5 [file] [log] [blame]
#ifndef TUX3_KCOMPAT_H
#define TUX3_KCOMPAT_H
#ifdef __KERNEL__
/*
* Temporary support for older kernel
*/
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
static inline struct inode *file_inode(struct file *file)
{
return file->f_dentry->d_inode;
}
#define MODULE_ALIAS_FS(x)
#endif
#endif /* !__KERNEL__ */
#endif /* !TUX3_KCOMPAT_H */