Skip to content

Commit

Permalink
AI_V4MAPPED doesn't exist on OpenBSD, fix build after #934, fixes #988
Browse files Browse the repository at this point in the history
  • Loading branch information
landryb committed Oct 23, 2023
1 parent 6471c63 commit 4303bb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ice/icesdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +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
struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG,
#endif
.ai_family = rcand->ai_family};
int err;

Expand Down

0 comments on commit 4303bb8

Please sign in to comment.