fix compilation for MinGW

This commit is contained in:
Atsushi SAKAI 2008-08-12 08:25:48 +00:00
parent 3c487a4229
commit 43c7f972aa
6 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Tue Aug 12 17:20:36 JST 2008 Atsushi SAKAI <sakaia@jp.fujitsu.com>
* src/domain.conf.c src/network_conf.c src/util.c src/virsh.c
tests/testutilsxen.c: fix compilation for MinGW
Tue Aug 12 10:09:23 CEST 2008 Daniel Veillard <veillard@redhat.com>
* python/generator.py: patch from Cole Robinson trying to fix

View File

@ -24,6 +24,7 @@
#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>

View File

@ -27,6 +27,7 @@
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>

View File

@ -262,7 +262,7 @@ virRun(virConnectPtr conn,
int
virExec(virConnectPtr conn,
char **argv ATTRIBUTE_UNUSED,
const char *const*argv ATTRIBUTE_UNUSED,
int *retpid ATTRIBUTE_UNUSED,
int infd ATTRIBUTE_UNUSED,
int *outfd ATTRIBUTE_UNUSED,
@ -274,7 +274,7 @@ virExec(virConnectPtr conn,
int
virExecNonBlock(virConnectPtr conn,
char **argv ATTRIBUTE_UNUSED,
const char *const*argv ATTRIBUTE_UNUSED,
int *retpid ATTRIBUTE_UNUSED,
int infd ATTRIBUTE_UNUSED,
int *outfd ATTRIBUTE_UNUSED,

View File

@ -80,6 +80,9 @@ static char *progname;
#define LVL_WARNING "WARNING"
#define LVL_ERROR "ERROR"
#ifndef WEXITSTATUS
# define WEXITSTATUS(x) ((x) & 0xff)
#endif
/**
* vshErrorLevel:
*

View File

@ -1,5 +1,6 @@
#include <config.h>
#ifdef WITH_XEN
#include <sys/utsname.h>
#include <stdlib.h>
@ -51,3 +52,4 @@ cleanup:
virCapabilitiesFree(caps);
return NULL;
}
#endif