mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 08:25:19 +00:00
fix compilation for MinGW
This commit is contained in:
parent
3c487a4229
commit
43c7f972aa
@ -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
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <dirent.h>
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
|
@ -80,6 +80,9 @@ static char *progname;
|
||||
#define LVL_WARNING "WARNING"
|
||||
#define LVL_ERROR "ERROR"
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
# define WEXITSTATUS(x) ((x) & 0xff)
|
||||
#endif
|
||||
/**
|
||||
* vshErrorLevel:
|
||||
*
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user