]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix include path for cygwin
authorEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 19:16:29 +0000 (13:16 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 19:31:53 +0000 (13:31 -0600)
commitc5b6537b1f1f3e126c2f06f84ca88fe3df6cde34
tree841b050310cec260fe23420f1ae77da82ea94e33
parent343ab98229a60126ec75087dd425207392b77754
build: fix include path for cygwin

Without this, cygwin failed to compile:

In file included from ../src/rpc/virnetmessage.h:24,
                 from ../src/rpc/virnetclient.h:27,
                 from remote/remote_driver.c:31:
../src/rpc/virnetprotocol.h:9:21: error: rpc/rpc.h: No such file or directory

With that fixed, compilation warned:

rpc/virnetsocket.c: In function 'virNetSocketNewListenUNIX':
rpc/virnetsocket.c:347: warning: format '%d' expects type 'int', but argument 8 has type 'gid_t' [-Wformat]
rpc/virnetsocket.c: In function 'virNetSocketGetLocalIdentity':
rpc/virnetsocket.c:743: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness

* src/Makefile.am (libvirt_driver_remote_la_CFLAGS)
(libvirt_net_rpc_client_la_CFLAGS)
(libvirt_net_rpc_server_la_CFLAGS): Include XDR_CFLAGS, for rpc
headers on cygwin.
* src/rpc/virnetsocket.c (virNetSocketNewListenUNIX)
(virNetSocketGetLocalIdentity): Avoid compiler warnings.
src/Makefile.am
src/rpc/virnetsocket.c