Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2020 22:34:26 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r542973 - head/lang/intel-compute-runtime/files
Message-ID:  <202007232234.06NMYQLw020960@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Jul 23 22:34:26 2020
New Revision: 542973
URL: https://svnweb.freebsd.org/changeset/ports/542973

Log:
  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.

Modified:
  head/lang/intel-compute-runtime/files/patch-max_freq   (contents, props changed)

Modified: head/lang/intel-compute-runtime/files/patch-max_freq
==============================================================================
--- head/lang/intel-compute-runtime/files/patch-max_freq	Thu Jul 23 22:12:42 2020	(r542972)
+++ head/lang/intel-compute-runtime/files/patch-max_freq	Thu Jul 23 22:34:26 2020	(r542973)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007232234.06NMYQLw020960>