mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-29 01:06:27 -05:00
Fix windows building
Regression occured in 3a92e4
This commit is contained in:
parent
056bbaa921
commit
062503a903
@ -276,7 +276,7 @@ if (UNIX AND NOT APPLE)
|
|||||||
target_link_libraries(keepassx_core Qt5::DBus)
|
target_link_libraries(keepassx_core Qt5::DBus)
|
||||||
endif()
|
endif()
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
target_link_libraries(keepassx_core Wtsapi32.lib)
|
target_link_libraries(keepassx_core Wtsapi32.lib Ws2_32.lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
#include "NativeMessagingHost.h"
|
#include "NativeMessagingHost.h"
|
||||||
#include "BrowserSettings.h"
|
#include "BrowserSettings.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
#include <Winsock2.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
NativeMessagingHost::NativeMessagingHost(DatabaseTabWidget* parent) :
|
NativeMessagingHost::NativeMessagingHost(DatabaseTabWidget* parent) :
|
||||||
NativeMessagingBase(),
|
NativeMessagingBase(),
|
||||||
m_mutex(QMutex::Recursive),
|
m_mutex(QMutex::Recursive),
|
||||||
@ -150,7 +154,7 @@ void NativeMessagingHost::newLocalMessage()
|
|||||||
int socketDesc = socket->socketDescriptor();
|
int socketDesc = socket->socketDescriptor();
|
||||||
if (socketDesc) {
|
if (socketDesc) {
|
||||||
int max = NATIVE_MSG_MAX_LENGTH;
|
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();
|
QByteArray arr = socket->readAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user