head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.05.04.12.28.52; author nia; state Exp; branches; next ; commitid JAlHJSIZQR6MIuEG; desc @@ 1.1 log @jfsw: Initial import. JFShadowWarrior is 3D Realms' 1997 shooter Shadow Warrior updated for modern computers. An OpenGL 2 implementation is required. Game data is required from a copy of Shadow Warrior (e.g. from GOG.com, Humble Store, or the shareware version). If using the shareware version, extract SWSW12.SHR to $HOME/.jfsw. Verified to build on FreeBSD, NetBSD, macOS, Linux (retro & modern). @ text @$NetBSD$ Build on NetBSD. --- jfbuild/src/mmulti.c.orig 2026-05-04 10:57:18.118628799 +0000 +++ jfbuild/src/mmulti.c @@@@ -911,9 +911,11 @@@@ static int lookuphost(const char *name, struct sockadd memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_ADDRCONFIG; hints.ai_family = domain; +#ifdef AI_V4MAPPED if (domain == PF_INET6) { hints.ai_flags |= AI_V4MAPPED; } +#endif hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = IPPROTO_UDP; @