diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-07-23 22:34:26 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2020-07-23 22:34:26 +0000 |
commit | bf7b51a806e3b340c99e51944d3e1829b1c4a25c (patch) | |
tree | 6cdf1469b2691fd45773f383bcb8cb95926b5d9d /lang/intel-compute-runtime | |
parent | c16491579da66e5045d66000d894d0f921c215a9 (diff) | |
download | ports-bf7b51a806e3b340c99e51944d3e1829b1c4a25c.tar.gz ports-bf7b51a806e3b340c99e51944d3e1829b1c4a25c.zip |
lang/intel-compute-runtime: don't pretend to support GNU
Intel NEO needs modern kernel DRM but GNU/kFreeBSD was discontinued.
fdevname_r(3) and sysctlbyname(3) don't exist in upstream glibc.
Notes
Notes:
svn path=/head/; revision=542973
Diffstat (limited to 'lang/intel-compute-runtime')
-rw-r--r-- | lang/intel-compute-runtime/files/patch-max_freq | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/intel-compute-runtime/files/patch-max_freq b/lang/intel-compute-runtime/files/patch-max_freq index 62f2b102802c..16835da58187 100644 --- a/lang/intel-compute-runtime/files/patch-max_freq +++ b/lang/intel-compute-runtime/files/patch-max_freq @@ -9,7 +9,7 @@ #include <fstream> -+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(__FreeBSD__) +#include <sys/param.h> +#include <sys/sysctl.h> +#include <cstdio> @@ -20,7 +20,7 @@ int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) { maxGpuFrequency = 0; -+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(__FreeBSD__) + char name[SPECNAMELEN + 1]; + if (!fdevname_r(getFileDescriptor(), name, sizeof(name))) { + return 0; |