mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
build: fix build without libvirtd
Building when configured --with-libvirtd=no fails with: In file included from ../src/qemu/qemu_command.h:30:0, from testutilsqemu.h:4, from networkxml2xmltest.c:14: ../src/qemu/qemu_conf.h:175:5: error: expected specifier-qualifier-list before 'virStateInhibitCallback' * src/libvirt_internal.h (virStateInhibitCallback): Move outside of conditional. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
7d21d6b697
commit
fd8fa33b54
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* libvirt.h: publically exported APIs, not for public use
|
||||
* libvirt_internal.h: internally exported APIs, not for public use
|
||||
*
|
||||
* Copyright (C) 2006-2008, 2011 Red Hat, Inc.
|
||||
* Copyright (C) 2006-2013 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
|
||||
@ -27,10 +27,10 @@
|
||||
|
||||
# include "internal.h"
|
||||
|
||||
# ifdef WITH_LIBVIRTD
|
||||
typedef void (*virStateInhibitCallback)(bool inhibit,
|
||||
void *opaque);
|
||||
|
||||
# ifdef WITH_LIBVIRTD
|
||||
int virStateInitialize(bool privileged,
|
||||
virStateInhibitCallback inhibit,
|
||||
void *opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user