6a6f94
diff --git a/src/rgw/rgw_string.h b/src/rgw/rgw_string.h
6a6f94
index 257daa9c1fe..90e64f98a25 100644
6a6f94
--- a/src/rgw/rgw_string.h
6a6f94
+++ b/src/rgw/rgw_string.h
6a6f94
@@ -8,6 +8,8 @@
6a6f94
 #include <stdlib.h>
6a6f94
 #include <limits.h>
6a6f94
 #include <string_view>
6a6f94
+#include <string>
6a6f94
+#include <stdexcept>
6a6f94
 
6a6f94
 #include <boost/container/small_vector.hpp>
6a6f94