Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . pacman.c (0+git20240818+ds-5) unstable; urgency=medium . * Fix FTBFS for Hurd. Author: Alex Myczko --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (|commit:) Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: (no|not-needed|) Applied-Upstream: , (|commit:) Reviewed-By: Last-Update: 2025-11-12 --- pacman.c-0+git20240818+ds.orig/CMakeLists.txt +++ pacman.c-0+git20240818+ds/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.5) project(pacman) set(CMAKE_C_STANDARD 11) -# Linux -pthread shenanigans -if (CMAKE_SYSTEM_NAME STREQUAL Linux) +# POSIX thread handling (covers Linux, GNU/Hurd, BSD) +if (UNIX AND NOT APPLE) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) endif() @@ -27,7 +27,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin) "-framework OpenGL" "-framework AudioToolbox") else() - if (CMAKE_SYSTEM_NAME STREQUAL Linux) + if (UNIX AND NOT APPLE) target_link_libraries(sokol INTERFACE X11 Xi Xcursor GL asound dl m) target_link_libraries(sokol PUBLIC Threads::Threads) endif()