File orca-slicer-tbb-spin_mutex.patch of Package orca-slicer

From 99dd8cb870df60bad0b1c7685fd82a9149dc1ccf Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Thu, 28 Nov 2024 06:32:54 -0800
Subject: [PATCH] libslic3r: include tbb/spin_mutex to fix compilation error
 (#7505)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

PrintObject.cpp references tbb::spin_mutex, thus it needs to include
tbb/spin_mutex. Otherwise compilation fails with:

error: ‘spin_mutex’ is not a member of ‘tbb’

Supersedes #7057
---
 src/libslic3r/PrintObject.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp
index 528a72e70..1530fe655 100644
--- a/src/libslic3r/PrintObject.cpp
+++ b/src/libslic3r/PrintObject.cpp
@@ -31,6 +31,7 @@
 #include <boost/log/trivial.hpp>
 
 #include <tbb/parallel_for.h>
+#include <tbb/spin_mutex.h>
 
 #include <Shiny/Shiny.h>
 
-- 
2.47.1