X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fntpd.c;h=c3dee22c2d0b656e3ad9e2cb9a8c723acdbb8bbf;hb=71bbf854d3e6f8c6d6c3582527263bb01a3a7e04;hp=e075a208b745790ac011a0efe7e6dbaef34395e9;hpb=aa3811995bfae69f0d1a0f897acfa4a9a4c0138a;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index e075a208..c3dee22c 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -364,7 +364,7 @@ static int ntpd_connect (void) port = NTPD_DEFAULT_PORT; struct addrinfo ai_hints = { - .ai_family = PF_UNSPEC, + .ai_family = AF_UNSPEC, .ai_flags = AI_ADDRCONFIG, .ai_protocol = IPPROTO_UDP, .ai_socktype = SOCK_DGRAM