direct-io.hg

changeset 11791:5525b18b7224

xc core structures are not Linux specific.
Signed-off-by: John Levon <john.levon@sun.com>
author kfraser@localhost.localdomain
date Wed Oct 18 11:38:59 2006 +0100 (2006-10-18)
parents b99d11877ba1
children bd207697f0c7
files tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/libxc/xenctrl.h	Wed Oct 18 11:37:45 2006 +0100
     1.2 +++ b/tools/libxc/xenctrl.h	Wed Oct 18 11:38:59 2006 +0100
     1.3 @@ -104,11 +104,6 @@ int xc_find_device_number(const char *na
     1.4   * DOMAIN DEBUGGING FUNCTIONS
     1.5   */
     1.6  
     1.7 -#ifdef __linux__
     1.8 -
     1.9 -#include <sys/ptrace.h>
    1.10 -#include <thread_db.h>
    1.11 -
    1.12  typedef struct xc_core_header {
    1.13      unsigned int xch_magic;
    1.14      unsigned int xch_nr_vcpus;
    1.15 @@ -120,6 +115,11 @@ typedef struct xc_core_header {
    1.16  
    1.17  #define XC_CORE_MAGIC 0xF00FEBED
    1.18  
    1.19 +#ifdef __linux__
    1.20 +
    1.21 +#include <sys/ptrace.h>
    1.22 +#include <thread_db.h>
    1.23 +
    1.24  void * map_domain_va_core(
    1.25      unsigned long domfd,
    1.26      int cpu,