--- a/src/slic3r/GUI/Mouse3DController.hpp
+++ b/src/slic3r/GUI/Mouse3DController.hpp
@@ -8,6 +8,7 @@

 #include "hidapi.h"

+#include <atomic>
 #include <queue>
 #include <thread>
 #include <vector>
