diff --git a/math/mathcore/src/TComplex.cxx b/math/mathcore/src/TComplex.cxx
index e513b02fbbb531e21cb631c6a5769d6089ad76ae..ca85f0012544bd0e64b8cf776ab59a4ab0e7befc 100644
--- a/math/mathcore/src/TComplex.cxx
+++ b/math/mathcore/src/TComplex.cxx
@@ -18,7 +18,7 @@
 #include "TComplex.h"
 #include "Riostream.h"
 
-#include <strstream>
+#include <sstream>
 
 ClassImp(TComplex);
 
@@ -56,7 +56,7 @@ std::istream& operator>>(std::istream& in, TComplex& c)
 namespace cling {
 std::string printValue(TComplex *c)
 {
-   std::strstream s;
+   std::stringstream s;
    s << *c;
    return s.str();
 }