main/rsync: restore ipv6 support
The autoconf check for ipv6 fails due to -Wimplicit-int, causing rsync to be built without ipv6 support.
Apply upstream patch to fix it.
This also cherry-picks 0342e5e5 to fix a build issue due to generated output not being properly escaped.
Fixes #16736 (closed)
Edited by Kevin Daudt