resolv: Fix building tst-resolv-invalid-cname for earlier C standards