libslic3r: include tbb/spin_mutex to fix compilation error (#7505)

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
This commit is contained in:
Vasily Khoruzhick 2024-11-28 06:32:54 -08:00 committed by GitHub
parent 508d0e6334
commit 16e532f73e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 14 deletions

View file

@ -304,8 +304,6 @@ modules:
# OrcaSlicer Source Archive
- type: dir
path: ../
- type: patch
path: patches/libslic3r_missing_include.patch
# AppData metainfo for Gnome Software & Co.
- type: file

View file

@ -1,12 +0,0 @@
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>

View file

@ -31,6 +31,7 @@
#include <boost/log/trivial.hpp>
#include <tbb/parallel_for.h>
#include <tbb/spin_mutex.h>
#include <Shiny/Shiny.h>