Merge pull request #663 from kiwix/fix_win32

This commit is contained in:
Matthieu Gautier 2021-12-23 18:38:25 +01:00 committed by GitHub
commit 843d315b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ std::map<std::string, std::string> kiwix::getNetworkInterfaces() {
#ifdef _WIN32
SOCKET sd = WSASocket(AF_INET, SOCK_DGRAM, 0, 0, 0, 0);
if (sd == SOCKET_ERROR) {
if (sd == INVALID_SOCKET) {
std::cerr << "Failed to get a socket. Error " << WSAGetLastError() << std::endl;
return interfaces;
}