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 de60f0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ice/icesdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ struct rcand {
char domain[128];
};

#ifndef AI_V4MAPPED
#define AI_V4MAPPED 0
#endif

/* Encode SDP Attributes */

Expand Down Expand Up @@ -209,11 +212,8 @@ 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
struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG,
#endif
.ai_family = rcand->ai_family};
int err;

Expand Down

0 comments on commit de60f0e

Please sign in to comment.