[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools: build fixes for NetBSD



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263279324 0
# Node ID 91d1d06d658e959ad8a2ab5ed405f85832ffab60
# Parent  596f7893b5acc0858a0ac61c7870e3a0ac0ed9e2
tools: build fixes for NetBSD

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/libxl/libxl.h        |    1 +
 tools/libxl/xl.c           |    2 +-
 tools/xenpaging/file_ops.c |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff -r 596f7893b5ac -r 91d1d06d658e tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Sat Jan 09 08:14:44 2010 +0000
+++ b/tools/libxl/libxl.h       Tue Jan 12 06:55:24 2010 +0000
@@ -20,6 +20,7 @@
 #include <netinet/in.h>
 #include <xenctrl.h>
 #include <xs.h>
+#include <sys/wait.h> /* for pid_t */
 
 typedef void (*libxl_log_callback)(void *userdata, int loglevel, const char 
*file,
                                    int line, const char *func, char *s);
diff -r 596f7893b5ac -r 91d1d06d658e tools/libxl/xl.c
--- a/tools/libxl/xl.c  Sat Jan 09 08:14:44 2010 +0000
+++ b/tools/libxl/xl.c  Tue Jan 12 06:55:24 2010 +0000
@@ -53,7 +53,7 @@ static int domain_qualifier_to_domid(str
 
     alldigit = 1;
     for (i = 0; p[i]; i++) {
-        if (!isdigit(p[i])) {
+        if (!isdigit((uint8_t)p[i])) {
             alldigit = 0;
             break;
         }
diff -r 596f7893b5ac -r 91d1d06d658e tools/xenpaging/file_ops.c
--- a/tools/xenpaging/file_ops.c        Sat Jan 09 08:14:44 2010 +0000
+++ b/tools/xenpaging/file_ops.c        Tue Jan 12 06:55:24 2010 +0000
@@ -36,7 +36,7 @@ static int file_op(int fd, void *page, i
     int bytes;
     int ret;
 
-    seek_ret = lseek64(fd, i << PAGE_SHIFT, SEEK_SET);
+    seek_ret = lseek(fd, i << PAGE_SHIFT, SEEK_SET);
 
     total = 0;
     while ( total < PAGE_SIZE )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.