diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 998dd7e..ea80897 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -354,6 +354,10 @@ Slice::Gen::generate(const UnitPtr& p)
         {
             H << "\n#include <Ice/Stream.h>";
         }
+        else
+        {
+            H << "\n#include <Ice/StreamF.h>";
+        }
     }
 
     if(_checksum)
