1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-20 10:22:18 +00:00

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

@ -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> Tue Aug 12 10:09:23 CEST 2008 Daniel Veillard <veillard@redhat.com>
* python/generator.py: patch from Cole Robinson trying to fix * python/generator.py: patch from Cole Robinson trying to fix

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

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

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

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

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