[Devel] [PATCH 6/6] allow vzsyscalls.h to always be called.

Glauber Costa glommer at parallels.com
Mon Nov 26 06:35:34 PST 2012


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 <glommer at parallels.com>
---
 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




More information about the Devel mailing list