Index: Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp
--- Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp.orig
+++ Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp
@@ -36,7 +36,9 @@
 #include "VivanteSuperTiledTextureInlines.h"
 #include <epoxy/egl.h>
 #include <fcntl.h>
+#ifdef __linux__
 #include <linux/dma-buf.h>
+#endif
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <wtf/SafeStrerror.h>
@@ -406,6 +408,7 @@ std::unique_ptr<MemoryMappedGPUBuffer::AccessScope> Me
 
 bool MemoryMappedGPUBuffer::performDMABufSyncSystemCall(OptionSet<DMABufSyncFlag> flags)
 {
+#ifdef __linux__
     constexpr unsigned maxRetries = 10;
 
     struct dma_buf_sync sync;
@@ -435,6 +438,9 @@ bool MemoryMappedGPUBuffer::performDMABufSyncSystemCal
     }
 
     return true;
+#else
+    return false;
+#endif
 }
 
 } // namespace WebCore
