Skip to content

Commit ef3412f

Browse files
committed
GPU (Haiku): add pci.ids file path
1 parent 1812c30 commit ef3412f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/common/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ void ffListFeatures(void)
236236
#if FF_HAVE_FREETYPE
237237
"freetype\n"
238238
#endif
239+
#if FF_HAVE_PCIACCESS
240+
"libpciaccess\n"
241+
#endif
239242
#if FF_HAVE_PULSE
240243
"libpulse\n"
241244
#endif

src/detection/gpu/gpu_pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ static const FFstrbuf* loadPciIds()
4545
ffReadFileBuffer(_PATH_LOCALBASE "/share/pciids/pci.ids", &pciids);
4646
#elif __sun
4747
ffReadFileBuffer(FASTFETCH_TARGET_DIR_ROOT "/usr/share/hwdata/pci.ids", &pciids);
48+
#elif __HAIKU__
49+
ffReadFileBuffer(FASTFETCH_TARGET_DIR_ROOT "/system/data/pciutils/pci.ids", &pciids);
4850
#endif
4951

5052
#endif // FF_CUSTOM_PCI_IDS_PATH

0 commit comments

Comments
 (0)