diff --git a/include/opendht/dht.h b/include/opendht/dht.h
index b8067711a3d866c7b73708f168cd9c320e843346..92444b0fd4da044afe53dc125d1670b1565fe08b 100644
--- a/include/opendht/dht.h
+++ b/include/opendht/dht.h
@@ -357,7 +357,7 @@ private:
     struct LocalListener;
     struct Search;
     struct ValueStorage;
-    struct StorageBucket;
+    class StorageBucket;
     struct Listener;
     struct Storage;