Simple diff to remove sysvall(2), feedback, ok?

diff --git a/x11/qt5/qtwebengine/Makefile b/x11/qt5/qtwebengine/Makefile
index 1e0eb265f29..e12acdac3cf 100644
--- a/x11/qt5/qtwebengine/Makefile
+++ b/x11/qt5/qtwebengine/Makefile
@@ -15,7 +15,7 @@ COMMENT =             Chromium-based web engine for Qt5
 # Many parts are copied from www/chromium port, so keep in sync
 DISTNAME =             
qtwebengine-everywhere-opensource-src-${QT5_WEBENGINE_VERSION}
 QT5NAME =              QtWebEngine
-REVISION =             6
+REVISION =             7
 
 CATEGORIES =           www
 
diff --git 
a/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_base_allocator_partition_allocator_spinning_futex_linux_cc
 
b/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_base_allocator_partition_allocator_spinning_futex_linux_cc
index 5697c9ad820..36e719590c2 100644
--- 
a/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_base_allocator_partition_allocator_spinning_futex_linux_cc
+++ 
b/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_base_allocator_partition_allocator_spinning_futex_linux_cc
@@ -17,3 +17,25 @@ Index: 
src/3rdparty/chromium/base/allocator/partition_allocator/spinning_futex_l
  #include <sys/syscall.h>
  #include <unistd.h>
  
+@@ -39,8 +43,8 @@ void SpinningFutex::FutexWait() {
+   // |kLockedContended| anymore. Note that even without spurious wakeups, the
+   // value of |state_| is not guaranteed when this returns, as another thread
+   // may get the lock before we get to run.
+-  int err = syscall(SYS_futex, &state_, FUTEX_WAIT | FUTEX_PRIVATE_FLAG,
+-                    kLockedContended, nullptr, nullptr, 0);
++  int err = futex(reinterpret_cast<volatile unsigned int *>(&state_), 
FUTEX_WAIT | FUTEX_PRIVATE_FLAG,
++                    kLockedContended, nullptr, nullptr);
+ 
+   if (err) {
+     // These are programming error, check them.
+@@ -52,8 +56,8 @@ void SpinningFutex::FutexWait() {
+ 
+ void SpinningFutex::FutexWake() {
+   int saved_errno = errno;
+-  long retval = syscall(SYS_futex, &state_, FUTEX_WAKE | FUTEX_PRIVATE_FLAG,
+-                        1 /* wake up a single waiter */, nullptr, nullptr, 0);
++  long retval = futex(reinterpret_cast<volatile unsigned int *>(&state_), 
FUTEX_WAKE | FUTEX_PRIVATE_FLAG,
++                        1 /* wake up a single waiter */, nullptr, nullptr);
+   PA_CHECK(retval != -1);
+   errno = saved_errno;
+ }
diff --git 
a/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_third_party_perfetto_src_tracing_ipc_memfd_cc
 
b/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_third_party_perfetto_src_tracing_ipc_memfd_cc
new file mode 100644
index 00000000000..feec1e1aaea
--- /dev/null
+++ 
b/x11/qt5/qtwebengine/patches/patch-src_3rdparty_chromium_third_party_perfetto_src_tracing_ipc_memfd_cc
@@ -0,0 +1,13 @@
+Index: src/3rdparty/chromium/third_party/perfetto/src/tracing/ipc/memfd.cc
+--- src/3rdparty/chromium/third_party/perfetto/src/tracing/ipc/memfd.cc.orig
++++ src/3rdparty/chromium/third_party/perfetto/src/tracing/ipc/memfd.cc
+@@ -20,7 +20,8 @@
+ 
+ #define PERFETTO_MEMFD_ENABLED()             \
+   PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \
+-      PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX)
++      (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && \
++      !PERFETTO_BUILDFLAG(PERFETTO_OS_OPENBSD))
+ 
+ #if PERFETTO_MEMFD_ENABLED()
+ 

Reply via email to