From 7b9c32ae871874bde356104844b47a139f7b44aa Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Fri, 3 Apr 2026 22:16:27 +0100 Subject: [PATCH] Fixed NetBSD build issues - Added missing include - Fixed X11 include directory not being included --- externals/CMakeLists.txt | 11 ++++++++++- src/video_core/pica/packed_attribute.h | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 2ee7018a3..ffcae42f6 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -499,6 +499,15 @@ if (ENABLE_VULKAN) else() target_include_directories(vulkan-headers INTERFACE ./vulkan-headers/include) target_disable_warnings(vulkan-headers) + if (BSD STREQUAL "NetBSD") + # There may be a better way to do this with + # find_package(X11), but I couldn't get + # CMake to do it, so we're depending on + # the x11-links package and assuming the + # prefix location. -OS + target_include_directories(vulkan-headers INTERFACE + /usr/pkg/share/x11-links/include) + endif() endif() # adrenotools @@ -519,4 +528,4 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64|armv8") else() target_compile_definitions(xxhash PRIVATE XXH_VECTOR=XXH_SCALAR) message(STATUS "Disabling SIMD for xxHash") -endif() \ No newline at end of file +endif() diff --git a/src/video_core/pica/packed_attribute.h b/src/video_core/pica/packed_attribute.h index 7c8028e38..137c3fb25 100644 --- a/src/video_core/pica/packed_attribute.h +++ b/src/video_core/pica/packed_attribute.h @@ -1,9 +1,10 @@ -// Copyright 2023 Citra Emulator Project +// Copyright Citra Emulator Project / Azahar Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once +#include #include #include "common/vector_math.h"