$OpenBSD: patch-base_allocator_partition_allocator_spinning_mutex_cc,v 1.3 2021/10/29 14:49:39 robert Exp $

Index: base/allocator/partition_allocator/spinning_mutex.cc
--- base/allocator/partition_allocator/spinning_mutex.cc.orig
+++ base/allocator/partition_allocator/spinning_mutex.cc
@@ -17,7 +17,11 @@
 
 #if defined(PA_HAS_LINUX_KERNEL)
 #include <errno.h>
+#if defined(OS_BSD)
+#include <sys/futex.h>
+#else
 #include <linux/futex.h>
+#endif
 #include <sys/syscall.h>
 #include <unistd.h>
 #endif  // defined(PA_HAS_LINUX_KERNEL)
