temporary fix for CentOS 6.x

This commit is contained in:
Tomoki Shirasawa
2015-06-30 18:19:53 +09:00
parent aabc3d386d
commit aa959c6b34

View File

@@ -10,8 +10,10 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/version.h>
#include "mcctrl.h" #include "mcctrl.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
static int pathcheck(const char *file, const char *list) static int pathcheck(const char *file, const char *list)
{ {
const char *p; const char *p;
@@ -254,3 +256,12 @@ void __exit binfmt_mcexec_exit(void)
{ {
unregister_binfmt(&mcexec_format); unregister_binfmt(&mcexec_format);
} }
#else
void __init binfmt_mcexec_init(void)
{
}
void __exit binfmt_mcexec_exit(void)
{
}
#endif