From bb3df95d13d367a56f3193a9ab22f96317551df0 Mon Sep 17 00:00:00 2001 From: Yorick Hardy Date: Tue, 5 Mar 2024 22:18:44 +0200 Subject: [PATCH] Define *ai-v4mapped* to zero on platforms where AI_V4MAPPED is undefined. This change defines *ai-v4mapped* to zero when AI_V4MAPPED is undefined and similarly for *ai-all* (similar to other patches). This allows (srfi 106) to be available on NetBSD and other platforms without AI_V4MAPPED and is the recommended behaviour by the author of SRFI-106: https://srfi-email.schemers.org/srfi-106/msg/2762553/ --- srfi/106.sld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srfi/106.sld b/srfi/106.sld index 5122b1b0..dae03155 100644 --- a/srfi/106.sld +++ b/srfi/106.sld @@ -388,7 +388,7 @@ #ifdef AI_V4MAPPED return_closcall1(data, k, obj_int2obj(AI_V4MAPPED)); #else - Cyc_rt_raise_msg(data, \"AI_V4MAPPED is not available on this platform\"); + return_closcall1(data, k, obj_int2obj(0)); #endif ") (define *ai-all* (ai-all)) @@ -398,7 +398,7 @@ #ifdef AI_ALL return_closcall1(data, k, obj_int2obj(AI_ALL)); #else - Cyc_rt_raise_msg(data, \"AI_ALL is not available on this platform\"); + return_closcall1(data, k, obj_int2obj(0)); #endif ") (make-const ai-addrconfig "AI_ADDRCONFIG" )