ChangeSet 1.1603, 2005/05/31 09:52:42+01:00, cl349@xxxxxxxxxxxxxxxxxxxx
xc_ptrace_core.c, xc_ptrace.c:
SLES9 has a problem with it's <asm/elf.h> and other headers associated
with it. Since we are only using one thing from this (that we really
don't need) we can just stop including it.
http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=34
Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
xc_ptrace.c | 3 +--
xc_ptrace_core.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff -Nru a/tools/libxc/xc_ptrace.c b/tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c 2005-05-31 07:01:56 -04:00
+++ b/tools/libxc/xc_ptrace.c 2005-05-31 07:01:56 -04:00
@@ -1,7 +1,6 @@
#include <sys/ptrace.h>
#include <sys/wait.h>
#include "xc_private.h"
-#include <asm/elf.h>
#include <time.h>
@@ -301,7 +300,7 @@
if (request == PTRACE_GETREGS) {
SET_PT_REGS(pt, ctxt[cpu].user_regs);
- memcpy(data, &pt, sizeof(elf_gregset_t));
+ memcpy(data, &pt, sizeof(struct gdb_regs));
} else if (request == PTRACE_GETFPREGS)
memcpy(data, &ctxt[cpu].fpu_ctxt, sizeof(ctxt[cpu].fpu_ctxt));
else /*if (request == PTRACE_GETFPXREGS)*/
diff -Nru a/tools/libxc/xc_ptrace_core.c b/tools/libxc/xc_ptrace_core.c
--- a/tools/libxc/xc_ptrace_core.c 2005-05-31 07:01:56 -04:00
+++ b/tools/libxc/xc_ptrace_core.c 2005-05-31 07:01:56 -04:00
@@ -1,7 +1,6 @@
#include <sys/ptrace.h>
#include <sys/wait.h>
#include "xc_private.h"
-#include <asm/elf.h>
#include <time.h>
@@ -258,7 +257,7 @@
case PTRACE_GETFPXREGS:
if (request == PTRACE_GETREGS) {
SET_PT_REGS(pt, ctxt[cpu].user_regs);
- memcpy(data, &pt, sizeof(elf_gregset_t));
+ memcpy(data, &pt, sizeof(struct gdb_regs));
} else if (request == PTRACE_GETFPREGS)
memcpy(data, &ctxt[cpu].fpu_ctxt, sizeof(ctxt[cpu].fpu_ctxt));
else /*if (request == PTRACE_GETFPXREGS)*/
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|