head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.14 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.12 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.10 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.8 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.6 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.4 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @// @; 1.1 date 2024.08.12.11.19.26; author nia; state Exp; branches; next ; commitid bdVnKe9jW1FxAwlF; desc @@ 1.1 log @Import games/vcmi VCMI is an open-source recreation of Heroes of Might & Magic III engine, giving it new and extended possibilities. This engine requires the game's original data files to run. The DRM-free version from GOG.com extracted with innoextract will work. @ text @$NetBSD$ Add support for NetBSD. --- lib/CThreadHelper.cpp.orig 2024-08-04 19:07:25.000000000 +0000 +++ lib/CThreadHelper.cpp @@@@ -15,7 +15,8 @@@@ #elif defined(VCMI_HAIKU) #include #elif !defined(VCMI_APPLE) && !defined(VCMI_FREEBSD) && \ - !defined(VCMI_HURD) && !defined(VCMI_OPENBSD) + !defined(VCMI_HURD) && !defined(VCMI_OPENBSD) && \ + !defined(VCMI_NETBSD) #include #endif @@@@ -109,6 +110,8 @@@@ void setThreadName(const std::string &na pthread_setname_np(name.c_str()); #elif defined(VCMI_FREEBSD) pthread_setname_np(pthread_self(), name.c_str()); +#elif defined(VCMI_NETBSD) + pthread_setname_np(pthread_self(), "%s", (void *)name.c_str()); #elif defined(VCMI_HAIKU) rename_thread(find_thread(NULL), name.c_str()); #elif defined(VCMI_UNIX) @