Make it compile
It's hacky, but it works
This commit is contained in:
parent
cfcea9ee67
commit
756f45145b
@ -4,5 +4,5 @@ cp /lib/modules/`uname -r`/build/scripts/module.lds scripts/ &&
|
||||
cp /lib/modules/`uname -r`/build/Module.symvers . &&
|
||||
cp /lib/modules/`uname -r`/build/include/config/kernel.release include/config/kernel.release &&
|
||||
cp /lib/modules/`uname -r`/build/include/generated/utsrelease.h include/generated/utsrelease.h &&
|
||||
make M=arch/x86/kvm/ -j &&
|
||||
make M=arch/x86/kvm/ -j KBUILD_MODPOST_WARN=1 &&
|
||||
echo "[!] kvm-nyx successfully compiled"
|
||||
|
@ -47,6 +47,8 @@ static NORETURN inline void die(const char *err, ...)
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wuse-after-free"
|
||||
static inline void *xrealloc(void *ptr, size_t size)
|
||||
{
|
||||
void *ret = realloc(ptr, size);
|
||||
@ -61,6 +63,7 @@ static inline void *xrealloc(void *ptr, size_t size)
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#define astrcatf(out, fmt, ...) \
|
||||
({ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user