xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* build fixes
@ 2010-01-11 11:58 Christoph Egger
  2010-01-12 17:22 ` Ian Jackson
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Egger @ 2010-01-11 11:58 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]


Hi!

Attached patch fixes Xen build on NetBSD.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_tools_build.diff --]
[-- Type: text/x-diff, Size: 1249 bytes --]

diff -r a52925e1c292 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h	Mon Jan 11 12:04:32 2010 +0100
+++ b/tools/libxl/libxl.h	Mon Jan 11 12:57:39 2010 +0100
@@ -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 a52925e1c292 tools/libxl/xl.c
--- a/tools/libxl/xl.c	Mon Jan 11 12:04:32 2010 +0100
+++ b/tools/libxl/xl.c	Mon Jan 11 12:57:39 2010 +0100
@@ -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 a52925e1c292 tools/xenpaging/file_ops.c
--- a/tools/xenpaging/file_ops.c	Mon Jan 11 12:04:32 2010 +0100
+++ b/tools/xenpaging/file_ops.c	Mon Jan 11 12:57:39 2010 +0100
@@ -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 )

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-12 18:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 11:58 build fixes Christoph Egger
2010-01-12 17:22 ` Ian Jackson
2010-01-12 17:31   ` Christoph Egger
2010-01-12 17:38   ` Keir Fraser
2010-01-12 17:42     ` Patrick Colp
2010-01-12 17:47       ` Christoph Egger
2010-01-12 18:44       ` Keir Fraser
2010-01-12 18:00     ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).