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