fix libxc compile
PATCH 1/1 fix libxc compile
# HG changeset patch
# User [email protected]
# Date 1161117291 25200
# Node ID 46a98dbb8932ba4b58afad0e215a08d316d7afab # Parent 8afc60a85d44db6f13f2d488c5dbda1bf4a1a2c1 xc core structures are not Linux-specific.
Signed-off-by John Levon <[email protected]>
tools/libxc/xenctrl.h +6 -5
@@ -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,