[Midnightbsd-cvs] [MidnightBSD/mports] 8313f8: games/devilutionX: fix build on MidnightBSD (isasc...

Lucas Holt noreply at github.com
Mon Sep 7 16:33:09 EDT 2026


  Branch: refs/heads/games/devilutionX
  Home:   https://github.com/MidnightBSD/mports
  Commit: 8313f8d5b20c40db2c470528b60c58259366d905
      https://github.com/MidnightBSD/mports/commit/8313f8d5b20c40db2c470528b60c58259366d905
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M games/devilutionX/Makefile
    A games/devilutionX/files/patch-CMake_Platforms.cmake
    A games/devilutionX/files/patch-CMake_functions_devilutionx__library.cmake

  Log Message:
  -----------
  games/devilutionX: fix build on MidnightBSD (isascii undeclared)

Upstream's CMake adds -D_POSIX_C_SOURCE=200809L on every non-Windows,
non-Apple system except FreeBSD. MidnightBSD reports its own
CMAKE_SYSTEM_NAME, so the macro was applied here. On BSD libc that
selects a strict POSIX namespace and turns off __XSI_VISIBLE, which
hides isascii() from <ctype.h>; base libc++'s <__locale> then fails
with "use of undeclared identifier 'isascii'" for anything including
<vector> under -std=c++20.

Treat MidnightBSD like FreeBSD in both places upstream checks for it:
skip the _POSIX_C_SOURCE define, and take the BSD branch in
Platforms.cmake so _BSD_SOURCE and the stat64/off64_t shims are set.
Add *.cmake to DOS2UNIX_GLOB so the new patches are CRLF-free.

Fixes #858

AI-Assisted-by: Claude Fable 5.1 <noreply at anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
Claude-Session: https://claude.ai/code/session_01QppyajU21HE92jbfdUgLSv
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list