]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: generalize solution for VPATH builds
authorEric Blake <eblake@redhat.com>
Tue, 6 Mar 2012 20:49:53 +0000 (13:49 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 8 Mar 2012 15:49:38 +0000 (08:49 -0700)
commit4d2e8355cbac08988dd97322ae7f7d552085ad3e
tree2fdffabe01c66c685fef6ad20647964f2fa79b08
parentcdab483e92d4510a98cfe45989392e2c3224ab8d
rpc: generalize solution for VPATH builds

Commit 5d4b0c4c80 tried to fix certain classes of VPATH builds,
but was too limited.  In particular, Guannan Ren reported:

>    For example: The libvirt source code resides in /home/testuser,
>                 I make dist in /tmp/buildvpath, the XDR routine .c file will
>                 include full path of the header file like:
>
>                 #include "/home/testuser/src/rpc/virnetprotocol.h"
>                 #include "internal.h"
>                 #include <arpa/inet.h>
>
>    If we distribute the tarball to another machine to compile,
>    it will report error as follows:
>
>    rpc/virnetprotocol.c:7:59: fatal error:
>    /home/testuser/src/rpc/virnetprotocol.h: No such file or directory

* src/rpc/genprotocol.pl: Fix more include lines.
src/rpc/genprotocol.pl