# HG changeset patch # User john.levon@sun.com # Date 1161117291 25200 # Node ID 46a98dbb8932ba4b58afad0e215a08d316d7afab # Parent 8afc60a85d44db6f13f2d488c5dbda1bf4a1a2c1 xc core structures are not Linux-specific. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -104,11 +104,6 @@ int xc_find_device_number(const char *na * DOMAIN DEBUGGING FUNCTIONS */ -#ifdef __linux__ - -#include <sys/ptrace.h> -#include <thread_db.h> - typedef struct xc_core_header { unsigned int xch_magic; unsigned int xch_nr_vcpus; @@ -119,6 +114,12 @@ typedef struct xc_core_header { } xc_core_header_t; #define XC_CORE_MAGIC 0xF00FEBED + + +#ifdef __linux__ + +#include <sys/ptrace.h> +#include <thread_db.h> void * map_domain_va_core( unsigned long domfd, _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel