debuggers.hg
changeset 20826:91d1d06d658e
tools: build fixes for NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Jan 12 06:55:24 2010 +0000 (2010-01-12) |
parents | 596f7893b5ac |
children | 5e1971bec881 |
files | tools/libxl/libxl.h tools/libxl/xl.c tools/xenpaging/file_ops.c |
line diff
1.1 --- a/tools/libxl/libxl.h Sat Jan 09 08:14:44 2010 +0000 1.2 +++ b/tools/libxl/libxl.h Tue Jan 12 06:55:24 2010 +0000 1.3 @@ -20,6 +20,7 @@ 1.4 #include <netinet/in.h> 1.5 #include <xenctrl.h> 1.6 #include <xs.h> 1.7 +#include <sys/wait.h> /* for pid_t */ 1.8 1.9 typedef void (*libxl_log_callback)(void *userdata, int loglevel, const char *file, 1.10 int line, const char *func, char *s);
2.1 --- a/tools/libxl/xl.c Sat Jan 09 08:14:44 2010 +0000 2.2 +++ b/tools/libxl/xl.c Tue Jan 12 06:55:24 2010 +0000 2.3 @@ -53,7 +53,7 @@ static int domain_qualifier_to_domid(str 2.4 2.5 alldigit = 1; 2.6 for (i = 0; p[i]; i++) { 2.7 - if (!isdigit(p[i])) { 2.8 + if (!isdigit((uint8_t)p[i])) { 2.9 alldigit = 0; 2.10 break; 2.11 }
3.1 --- a/tools/xenpaging/file_ops.c Sat Jan 09 08:14:44 2010 +0000 3.2 +++ b/tools/xenpaging/file_ops.c Tue Jan 12 06:55:24 2010 +0000 3.3 @@ -36,7 +36,7 @@ static int file_op(int fd, void *page, i 3.4 int bytes; 3.5 int ret; 3.6 3.7 - seek_ret = lseek64(fd, i << PAGE_SHIFT, SEEK_SET); 3.8 + seek_ret = lseek(fd, i << PAGE_SHIFT, SEEK_SET); 3.9 3.10 total = 0; 3.11 while ( total < PAGE_SIZE )