• E
    build: fix FreeBSD build · 348ac061
    Eric Blake 提交于
    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: NEric Blake <eblake@redhat.com>
    348ac061
libvirt.c 623.6 KB