Commit 4a2d9976 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖 Committed by Laurent Montel
Browse files

ntoh() is available in the Winsock library on Windows

parent 182d595e
......@@ -102,6 +102,10 @@ target_link_libraries(KF5WebEngineViewer
KF5::ConfigCore
)
if (WIN32)
target_link_libraries(KF5WebEngineViewer PRIVATE Ws2_32)
endif()
set_target_properties(KF5WebEngineViewer PROPERTIES
VERSION ${WEBENGINEVIEWER_VERSION_STRING}
SOVERSION ${WEBENGINEVIEWER_SOVERSION}
......
......@@ -9,7 +9,11 @@
#include "riceencodingdecoder.h"
#include "webengineviewer_debug.h"
#ifdef WIN32
#include <Winsock2.h>
#else
#include <netinet/in.h>
#endif
namespace {
const int kBitsPerByte = 8;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment