diff --git a/streaming_recording_backend.h b/streaming_recording_backend.h
index ede20e6b3761b28fb4be86f4d6a153c2fae85778..622bcdb379e07e3fa4948238135cdc99b8a46da5 100644
--- a/streaming_recording_backend.h
+++ b/streaming_recording_backend.h
@@ -27,6 +27,7 @@
 #include <memory>
 #include <mutex>
 #include <string>
+#include <thread>
 #include <vector>
 
 #include "nest_types.h"