aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/sysctl.c
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:38 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:38 +0000
commita6f33d81e1b8a2012ea6b34387ef59d6f4bec2b1 (patch)
treed79366472426928d50e0ec166355372b21ffc285 /xen/arch/x86/sysctl.c
parentb0a4c24ddae72f424710456f054297153565222f (diff)
downloadxen-a6f33d81e1b8a2012ea6b34387ef59d6f4bec2b1.tar.gz
xen-a6f33d81e1b8a2012ea6b34387ef59d6f4bec2b1.tar.bz2
xen-a6f33d81e1b8a2012ea6b34387ef59d6f4bec2b1.zip
Enable compatibility mode operation for HYPERVISOR_sysctl.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/sysctl.c')
-rw-r--r--xen/arch/x86/sysctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c
index 0f265825bd..be96055290 100644
--- a/xen/arch/x86/sysctl.c
+++ b/xen/arch/x86/sysctl.c
@@ -25,10 +25,14 @@
#include <asm/hvm/support.h>
#include <asm/processor.h>
-long arch_do_sysctl(
+#ifndef COMPAT
+typedef long ret_t;
+#endif
+
+ret_t arch_do_sysctl(
struct xen_sysctl *sysctl, XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl)
{
- long ret = 0;
+ ret_t ret = 0;
switch ( sysctl->cmd )
{