Avoid a build error when configuring --without-xen --without-qemu.
* src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
* src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
* src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.
+Thu Nov 6 20:45:42 CET 2008 Jim Meyering <meyering@redhat.com>
+
+ always compile iptables.c
+ Avoid a build error when configuring --without-xen --without-qemu.
+ * src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
+ * src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
+ * src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.
+
Thu Nov 6 17:33:34 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
#include <config.h>
-#if WITH_QEMU
-
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
{
return iptablesForwardMasquerade(ctx, network, physdev, REMOVE);
}
-
-#endif /* WITH_QEMU */
/*
- * Copyright (C) 2007 Red Hat, Inc.
+ * Copyright (C) 2007, 2008 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#ifndef __QEMUD_IPTABLES_H__
#define __QEMUD_IPTABLES_H__
-#if WITH_QEMU
-
typedef struct _iptablesContext iptablesContext;
iptablesContext *iptablesContextNew (void);
const char *network,
const char *physdev);
-#endif /* WITH_QEMU */
-
#endif /* __QEMUD_IPTABLES_H__ */
#else /* __MINGW32__ */
+int
+virRun(virConnectPtr conn,
+ const char *const *argv ATTRIBUTE_UNUSED,
+ int *status)
+{
+ if (status)
+ *status = ENOTSUP;
+ else
+ ReportError (conn, VIR_ERR_INTERNAL_ERROR, __FUNCTION__);
+ return -1;
+}
+
int
virExec(virConnectPtr conn,
const char *const*argv ATTRIBUTE_UNUSED,