Skip to content

Commit 863c558

Browse files
committed
GPU (OpenBSD): fix pci.ids file location
Fix #1819 Signed-off-by: kevlo <kevlo@openbsd.org>
1 parent 45cbc6d commit 863c558

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detection/gpu/gpu_pci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ static const FFstrbuf* loadPciIds()
4545
if (pciids.length == 0)
4646
ffReadFileBuffer(FASTFETCH_TARGET_DIR_USR "/local/share/hwdata/pci.ids", &pciids);
4747
}
48-
#elif __FreeBSD__ || __OpenBSD__ || __NetBSD__
48+
#elif __FreeBSD__ || __NetBSD__
4949
ffReadFileBuffer(_PATH_LOCALBASE "/share/pciids/pci.ids", &pciids);
50+
#elif __OpenBSD__
51+
ffReadFileBuffer(_PATH_LOCALBASE "/share/hwdata/pci.ids", &pciids);
5052
#elif __sun
5153
ffReadFileBuffer(FASTFETCH_TARGET_DIR_ROOT "/usr/share/hwdata/pci.ids", &pciids);
5254
#elif __HAIKU__

0 commit comments

Comments
 (0)