Skip to content

Commit 1fc0f75

Browse files
committed
GPU (Haiku): add support
1 parent bf707c2 commit 1fc0f75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cmake_dependent_option(ENABLE_DIRECTX_HEADERS "Enable DirectX headers for WSL" O
8383
cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR ANDROID OR DragonFly" OFF)
8484
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF)
8585
cmake_dependent_option(ENABLE_LIBZFS "Enable libzfs" ON "LINUX OR FreeBSD OR SunOS" OFF)
86-
cmake_dependent_option(ENABLE_PCIACCESS "Enable libpciaccess" ON "NetBSD OR OpenBSD OR SunOS" OFF)
86+
cmake_dependent_option(ENABLE_PCIACCESS "Enable libpciaccess" ON "NetBSD OR OpenBSD OR SunOS OR Haiku" OFF)
8787

8888
option(ENABLE_SYSTEM_YYJSON "Use system provided (instead of fastfetch embedded) yyjson library" OFF)
8989
option(ENABLE_ASAN "Build fastfetch with ASAN (address sanitizer)" OFF)
@@ -1116,7 +1116,7 @@ elseif(Haiku)
11161116
src/detection/diskio/diskio_nosupport.c
11171117
src/detection/displayserver/displayserver_haiku.cpp
11181118
src/detection/font/font_haiku.cpp
1119-
src/detection/gpu/gpu_nosupport.c
1119+
src/detection/gpu/gpu_general.c
11201120
src/detection/gpu/gpu_pci.c
11211121
src/detection/gtk_qt/gtk.c
11221122
src/detection/host/host_nosupport.c

src/detection/gpu/gpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus);
4848

4949
const char* ffGPUGetVendorString(unsigned vendorId);
5050

51-
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__NetBSD__) || defined(__OpenBSD__)
51+
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__HAIKU__)
5252
void ffGPUFillVendorAndName(uint8_t subclass, uint16_t vendor, uint16_t device, FFGPUResult* gpu);
5353
#endif

0 commit comments

Comments
 (0)