]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc_monitor_protocol: Redefine xdr_uint64_t if needed
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Sep 2014 08:44:42 +0000 (10:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Sep 2014 08:15:03 +0000 (10:15 +0200)
commitc99f66ac4c831b2ff9116c2e2ca003cd3550bff8
treefdf494d89abf8ca94de8c31c9e50f080c6b87f08
parent3a3c3780b478ccf137b434754c7c6b1ddbdf1ac2
lxc_monitor_protocol: Redefine xdr_uint64_t if needed

https://bugzilla.redhat.com/show_bug.cgi?id=993411

On some systems (using libtirpc instead of glibc's
implementation), xdr_uint64_t exists rather under different name:
xdr_u_int64_t. This makes compilation fail then:

libvirt_lxc-lxc_monitor_protocol.o: In function `xdr_virLXCMonitorInitEventMsg':
/usr/local/src/libvirt/libvirt-1.1.1/src/./lxc/lxc_monitor_protocol.c:31: undefined reference to `xdr_uint64_t'

Therefore we rather mirror the d707c866 commit and redefine
xdr_uint64_t if needed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_monitor_protocol.x