ports/www/waterfox/files/patch-toolkit_xre_glxtest.cpp
Martin Filla d2d9373bc7 www/waterfox: update to G6.0.17
There have been many releases since then:
https://github.com/BrowserWorks/Waterfox/releases
Changelogs: https://www.waterfox.net/docs/releases/G6.0.17/

This release is based on Firefox ESR 115.

New maintainer: Martin Filla <freebsd@sysctl.cz>

PR:	278672
2024-07-09 04:07:25 +03:00

18 lines
545 B
C++

--- toolkit/xre/glxtest/glxtest.cpp.orig 2023-05-28 22:08:21.663847000 +0200
+++ toolkit/xre/glxtest/glxtest.cpp 2023-05-28 22:09:33.647075000 +0200
@@ -195,9 +195,14 @@
static void get_pci_status() {
log("GLX_TEST: get_pci_status start\n");
+#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;
}