To avoid spreading ifdefs all over, we would like to keep the include of vzsyscalls.h unconditional. So after we already defined VZ_KERNEL_SUPPORTED, we can test for that.
We also tweak the message a bit to make it more descriptive. Signed-off-by: Glauber Costa <[email protected]> --- include/vzsyscalls.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/vzsyscalls.h b/include/vzsyscalls.h index 370c0a8..57a6a7d 100644 --- a/include/vzsyscalls.h +++ b/include/vzsyscalls.h @@ -20,6 +20,8 @@ #include <sys/syscall.h> +#ifdef VZ_KERNEL_SUPPORTED + #ifdef __ia64__ #define __NR_fairsched_vcpus 1499 #define __NR_fairsched_chwt 1502 @@ -63,7 +65,8 @@ #endif #endif #else -#error "no syscall for this arch" +#error "VZ kernel not supported in this architecture" #endif #endif +#endif -- 1.7.11.7 _______________________________________________ Devel mailing list [email protected] http://lists.openvz.org/mailman/listinfo/devel
