Global: support DragonFly BSD

This commit is contained in:
Carter Li
2024-11-03 08:35:11 +08:00
parent 540239fe03
commit f7288fec01
19 changed files with 101 additions and 17 deletions
+5 -3
View File
@@ -2,12 +2,14 @@
#include "common/io/io.h"
#include "common/properties.h"
#include "util/mallocHelper.h"
#include "util/stringUtils.h"
#include <dev/pci/pcireg.h>
#include <sys/pciio.h>
#include <fcntl.h>
#if __has_include(<dev/pci/pcireg.h>)
#include <dev/pci/pcireg.h> // FreeBSD
#else
#include <bus/pci/pcireg.h> // DragonFly
#endif
const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus)
{
+3
View File
@@ -4,6 +4,9 @@
#include <stdlib.h>
#ifdef __FreeBSD__
#include <paths.h>
#ifndef _PATH_LOCALBASE
#define _PATH_LOCALBASE "/usr/local"
#endif
#endif
#if FF_HAVE_EMBEDDED_PCIIDS