diff --git a/src/network/socket/qlocalserver_unix.cpp b/src/network/socket/qlocalserver_unix.cpp index 0c2edef578..72fcb7cb62 100644 --- a/src/network/socket/qlocalserver_unix.cpp +++ b/src/network/socket/qlocalserver_unix.cpp @@ -215,7 +215,7 @@ bool QLocalServerPrivate::listen(qintptr socketDescriptor) #ifdef Q_OS_LINUX struct ::sockaddr_un addr; - socklen_t len; + QT_SOCKLEN_T len = sizeof(addr); memset(&addr, 0, sizeof(addr)); if (0 == ::getsockname(listenSocket, (sockaddr *)&addr, &len)) { // check for absract sockets