]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix FreeBSD build
authorEric Blake <eblake@redhat.com>
Thu, 2 May 2013 21:30:48 +0000 (15:30 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 2 May 2013 21:41:21 +0000 (15:41 -0600)
commit348ac061330b78cc03ed2d6841df65be5a7782fc
treeecfe7cd733138366b3ab6ff01c0663658cf8ba23
parent25ae3d301508a6a9db7cdc5678ef5d93e793d9b8
build: fix FreeBSD build

Commit 7c9a2d88 cleaned up too many headers; FreeBSD builds
failed due to:

util/virutil.c:556: warning: implicit declaration of function 'canonicalize_file_name'

(Not sure which Linux header leaked this declaration, but gnulib
only guarantees it in stdlib.h)

libvirt.c:956: warning: implicit declaration of function 'virGetUserConfigDirectory'

(Here, a build on Linux was picking up virutil.h indirectly via
one of the conditional driver headers, where that driver was not
being built on my FreeBSD setup)

* src/util/virutil.c (includes): Need <stdlib.h> for
canonicalize_file_name.
* src/libvirt.c (includes): Use "virutil.h" unconditionally,
rather than relying on conditional indirect inclusion.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/libvirt.c
src/util/virutil.c