-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,23 @@ | |
// SVUtil contains the SVSync and SVNetwork classes, which are used for | ||
// thread/process creation & synchronization and network connection. | ||
|
||
// Include automatically generated configuration file if running autoconf. | ||
#ifdef HAVE_CONFIG_H | ||
# include "config_auto.h" | ||
#endif | ||
|
||
#include "svutil.h" | ||
#include <cstdio> | ||
#include <cstdlib> | ||
#include <cstring> | ||
#include <iostream> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
#ifdef _WIN32 | ||
#pragma comment(lib, "Ws2_32.lib") | ||
struct addrinfo { | ||
struct sockaddr* ai_addr; | ||
int ai_addrlen; | ||
int ai_family; | ||
int ai_socktype; | ||
int ai_protocol; | ||
}; | ||
#include <winsock2.h> // for fd_set, send, ... | ||
# include <WinSock2.h> // for fd_set, send, .. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zdenop
Author
Contributor
|
||
#else | ||
#include <arpa/inet.h> | ||
#include <netdb.h> | ||
|
@@ -45,20 +51,6 @@ struct addrinfo { | |
#include <unistd.h> | ||
#endif | ||
|
||
#include <cstdlib> | ||
#include <cstring> | ||
#include <iostream> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
// Include automatically generated configuration file if running autoconf. | ||
#ifdef HAVE_CONFIG_H | ||
#include "config_auto.h" | ||
#endif | ||
|
||
#include "svutil.h" | ||
|
||
SVMutex::SVMutex() { | ||
#ifdef _WIN32 | ||
mutex_ = CreateMutex(0, FALSE, 0); | ||
|
What was the reason for this commit? It now breaks cross compilation for Windows on Linux, because Linux is case sensitive and the filename is
winsock2.h
.