Skip to content

Commit

Permalink
AI_V4MAPPED macro is missing on some platforms, e.g. OpenBSD, NetBSD,…
Browse files Browse the repository at this point in the history
… etc.
  • Loading branch information
leleliu008 committed Aug 29, 2024
1 parent 5cc9aa7 commit df6b15c
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 df6b15c

Please sign in to comment.