diff options
Diffstat (limited to 'www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x__server__pixel__buffer.cc')
-rw-r--r-- | www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x__server__pixel__buffer.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x__server__pixel__buffer.cc b/www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x__server__pixel__buffer.cc new file mode 100644 index 000000000000..a3a45ddd1670 --- /dev/null +++ b/www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x__server__pixel__buffer.cc @@ -0,0 +1,16 @@ +--- third_party/webrtc/modules/desktop_capture/linux/x_server_pixel_buffer.cc.orig 2022-02-07 13:39:41 UTC ++++ third_party/webrtc/modules/desktop_capture/linux/x_server_pixel_buffer.cc +@@ -213,6 +213,13 @@ void XServerPixelBuffer::InitShm(const XWindowAttribut + Visual* default_visual = attributes.visual; + int default_depth = attributes.depth; + ++#if defined(__OpenBSD__) ++ // pledge(2) ++ RTC_LOG(LS_WARNING) << "Unable to use shmget(2) while using pledge(2). " ++ "Performance may be degraded."; ++ return; ++#endif ++ + int major, minor; + Bool have_pixmaps; + if (!XShmQueryVersion(display_, &major, &minor, &have_pixmaps)) { |