Skip to content

Commit

Permalink
ice: AI_V4MAPPED macro is missing on some BSD systems (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 authored Sep 2, 2024
1 parent efcca9d commit 1bf492a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ice/icesdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ static int getaddr_rcand(void *arg)
{
struct rcand *rcand = arg;
struct addrinfo *res, *res0 = NULL;
#ifndef OPENBSD
struct addrinfo hints = {.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG,
#else

#if defined(OPENBSD) || defined(__NetBSD__)
struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG,
#else
struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED,
#endif
.ai_family = rcand->ai_family};
int err;
Expand Down

0 comments on commit 1bf492a

Please sign in to comment.