diff --git a/src/wtp/discovery.c b/src/wtp/discovery.c index 26b5973a..645433c1 100644 --- a/src/wtp/discovery.c +++ b/src/wtp/discovery.c @@ -105,7 +105,7 @@ int cw_run_discovery(struct conn *conn, const char *addr, const char *bindaddr) memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_DGRAM; - hints.ai_family = PF_UNSPEC; + hints.ai_family = AF_UNSPEC; strncpy(caddr, addr, sizeof(caddr));