$OpenBSD: patch-coreapi_linphonecore_c,v 1.1.1.1 2021/07/10 12:03:20 landry Exp $

default to ipv6 disabled, the world isnt ready yet

Index: coreapi/linphonecore.c
--- coreapi/linphonecore.c.orig
+++ coreapi/linphonecore.c
@@ -706,7 +706,7 @@ static void _close_log_collection_file(void) {
 	}
 }
 
-#if (!__ANDROID__ && !__APPLE__) || (__ANDROID__ && __ANDROID_API__ < 21)
+#if (!__ANDROID__ && !__APPLE__ && !__OpenBSD__) || (__ANDROID__ && __ANDROID_API__ < 21)
 static const char* getprogname() {
 #if defined(__GLIBC__)
   	return program_invocation_short_name;
@@ -1560,7 +1560,7 @@ static void sip_config_read(LinphoneCore *lc) {
 	const char *tmpstr;
 	LinphoneSipTransports tr;
 	int i,tmp;
-	int ipv6_default = TRUE;
+	int ipv6_default = FALSE;
 
 	if (linphone_config_get_int(lc->config, "sip", "session_expires_value", 0) > 0) {
 		lc->sal->setSessionTimersEnabled(linphone_core_get_session_expires_enabled(lc));
