         // in6addr_any — binding to in6addr_loopback will effectively rule out
         // IPv4 addresses):
         //
-        if setsockopt(socketFileDescriptor, IPPROTO_IPV6, IPV6_V6ONLY, &sockoptValueNO, socklen_t(sizeof(Int32))) == -1 {
+        if setsockopt(socketFileDescriptor, IPPROTO_IPV6, IPV6_V6ONLY, &sockoptValueNO, socklen_t(sizeof(Int32.self))) == -1 {
             let details = Socket.descriptionOfLastError()
             Socket.releaseIgnoringErrors(socketFileDescriptor)
             throw SocketError.socketSettingIPV6OnlyFailed(details)

        
        // Allow reuse of local addresses:
        //
        if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &sockoptValueYES, socklen_t(sizeof(Int32))) == -1 {
            let details = Socket.descriptionOfLastError()
            Socket.releaseIgnoringErrors(socketFileDescriptor)
            throw SocketError.socketSettingReUseAddrFailed(details)

        #else
            // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
            var no_sig_pipe: Int32 = 1
            setsockopt(socketFileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(sizeof(Int32.self)))
        #endif
    }
    
