mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools: build fixes for NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
1 parent
018d9dd53f
commit
e1ca3df9bd
3 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ static int domain_qualifier_to_domid(struct libxl_ctx *ctx, char *p, uint32_t *d
|
||||
|
||||
alldigit = 1;
|
||||
for (i = 0; p[i]; i++) {
|
||||
if (!isdigit(p[i])) {
|
||||
if (!isdigit((uint8_t)p[i])) {
|
||||
alldigit = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ static int file_op(int fd, void *page, int 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 )
|
||||
|
||||