author | trustchk <trustchk@users.noreply.github.com> | |
Thu, 2 Nov 2017 10:31:22 +0000 (10:31 +0000) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 5 Nov 2017 05:25:25 +0000 (06:25 +0100) | ||
commit | a69d01a277f48652481c161be3feea16e50d72eb | |
tree | 858c784929ec0a384ea54d8bd7b70e858a80b301 | tree | snapshot |
parent | 531bad35502b9543074e31e0c80a9f7a6f3a8b27 | commit | diff |
libcollectdclient: fix usage of ip_mreq
On both IBM AIX and Gentoo Linux, the struct `ip_mreq` does not define
the field `imr_address`, plus the compiler throws an error in the
assignment of `sa->s_addr`. With `ip_mreqn` present, the fallback path
for `ip_mreq` is not used and everything works. But AIX does not know
that struct and fails to compile.
On both IBM AIX and Gentoo Linux, the struct `ip_mreq` does not define
the field `imr_address`, plus the compiler throws an error in the
assignment of `sa->s_addr`. With `ip_mreqn` present, the fallback path
for `ip_mreq` is not used and everything works. But AIX does not know
that struct and fails to compile.
src/libcollectdclient/server.c | diff | blob | history |