diff --git a/net/net/inc/TMessage.h b/net/net/inc/TMessage.h
index 4e6740cca3ed558b6a1c3ab110213b81f397138e..d1fdd4fc8535c9126e6e24e92eb8a6c3f57ec2df 100644
--- a/net/net/inc/TMessage.h
+++ b/net/net/inc/TMessage.h
@@ -39,6 +39,7 @@ class TMessage : public TBufferFile {
 
 friend class TAuthenticate;
 friend class TSocket;
+friend class TUdpSocket;
 friend class TPSocket;
 friend class TXSocket;