diff --git a/src/plugins/coreplugin/ssh/sftpoperation_p.h b/src/plugins/coreplugin/ssh/sftpoperation_p.h
index c64d081b9d8cec63ba6c99951f79e1d38c859ef5..e2f4df3bf7d410e51e8e654db4de15e5b1a79746 100644
--- a/src/plugins/coreplugin/ssh/sftpoperation_p.h
+++ b/src/plugins/coreplugin/ssh/sftpoperation_p.h
@@ -65,7 +65,7 @@ private:
     AbstractSftpOperation &operator=(const AbstractSftpOperation &);
 };
 
-class SftpUploadDir;
+struct SftpUploadDir;
 
 struct SftpMakeDir : public AbstractSftpOperation
 {