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 #include #include +#include /* 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 )