summaryrefslogtreecommitdiff
path: root/www/librewolf/files/patch-toolkit_xre_glxtest.cpp
diff options
context:
space:
mode:
authorJesper Schmitz Mouridsen <jsm@FreeBSD.org>2023-02-26 20:38:20 +0100
committerJesper Schmitz Mouridsen <jsm@FreeBSD.org>2023-02-26 20:50:01 +0100
commitb09304bf26695a32b3eacd355b7613b2768a41e6 (patch)
treefbcf74f69585ecbd8fc0061cd9c3178e9adc16ba /www/librewolf/files/patch-toolkit_xre_glxtest.cpp
parentsysutils/py-glances: Update to 3.3.1 (diff)
www/librewolf: Update to 109.0.1.2
Add its own profiles root directory to not conflict with firefox profiles, of different versions. PR: 269092 Approved by: Martin Filla <freebsd@sysctl.cz> (maintainer)
Diffstat (limited to 'www/librewolf/files/patch-toolkit_xre_glxtest.cpp')
-rw-r--r--www/librewolf/files/patch-toolkit_xre_glxtest.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/librewolf/files/patch-toolkit_xre_glxtest.cpp b/www/librewolf/files/patch-toolkit_xre_glxtest.cpp
new file mode 100644
index 000000000000..b89d8b492e4a
--- /dev/null
+++ b/www/librewolf/files/patch-toolkit_xre_glxtest.cpp
@@ -0,0 +1,17 @@
+--- toolkit/xre/glxtest.cpp.orig
++++ toolkit/xre/glxtest.cpp
+@@ -270,9 +270,14 @@
+ #define PCI_BASE_CLASS_DISPLAY 0x03
+
+ static void get_pci_status() {
++#if defined(__FreeBSD__)
++ if (access("/dev/pci", F_OK) != 0) {
++ record_warning("cannot access /dev/pci");
++#else
+ if (access("/sys/bus/pci/", F_OK) != 0 &&
+ access("/sys/bus/pci_express/", F_OK) != 0) {
+ record_warning("cannot access /sys/bus/pci");
++#endif
+ return;
+ }
+