From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: build fixes
Date: Mon, 11 Jan 2010 12:58:26 +0100 [thread overview]
Message-ID: <201001111258.26274.Christoph.Egger@amd.com> (raw)
[-- 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
next reply other threads:[~2010-01-11 11:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 11:58 Christoph Egger [this message]
2010-01-12 17:22 ` build fixes 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201001111258.26274.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).