WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [SOLARIS] fix libxc compile

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [SOLARIS] fix libxc compile
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Tue, 17 Oct 2006 21:35:52 +0100
Delivery-date: Tue, 17 Oct 2006 13:36:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1161117291 25200
# Node ID 46a98dbb8932ba4b58afad0e215a08d316d7afab
# Parent  8afc60a85d44db6f13f2d488c5dbda1bf4a1a2c1
xc core structures are not Linux-specific.

Signed-off-by: John Levon <john.levon@xxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [SOLARIS] fix libxc compile, John Levon <=