From 4303bb8826e83ad748cd6ecaa1758771d8597a62 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 23 Oct 2023 08:02:21 +0200 Subject: [PATCH] AI_V4MAPPED doesn't exist on OpenBSD, fix build after #934, fixes #988 --- src/ice/icesdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ice/icesdp.c b/src/ice/icesdp.c index 41a8b113f..65cc75408 100644 --- a/src/ice/icesdp.c +++ b/src/ice/icesdp.c @@ -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;