Fix windows building

Regression occured in 3a92e4
This commit is contained in:
Jonathan White committed 2018-04-26 23:12:10 -04:00
1 parent 056bbaa921
commit 062503a903
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -23,6 +23,10 @@
#include "NativeMessagingHost.h"
#include "BrowserSettings.h"
#ifdef Q_OS_WIN
#include <Winsock2.h>
#endif
NativeMessagingHost::NativeMessagingHost(DatabaseTabWidget* parent) :
NativeMessagingBase(),
m_mutex(QMutex::Recursive),
@@ -150,7 +154,7 @@ void NativeMessagingHost::newLocalMessage()
int socketDesc = socket->socketDescriptor();
if (socketDesc) {
int max = NATIVE_MSG_MAX_LENGTH;
setsockopt(socketDesc, SOL_SOCKET, SO_SNDBUF, &max, sizeof(max));
setsockopt(socketDesc, SOL_SOCKET, SO_SNDBUF, reinterpret_cast<char*>(&max), sizeof(max));
}
QByteArray arr = socket->readAll();