Fix windows Compil with sys/socket.h

This commit is contained in:
Phenom 2016-11-08 19:47:17 +01:00
parent befeb44f07
commit 2827233880
3 changed files with 25 additions and 3 deletions

View File

@ -26,7 +26,15 @@
*
*/
#include <sys/socket.h>
/* get OS-specific definitions for:
* struct sockaddr_storage
*/
#ifndef WINDOWS_SYS
#include <sys/socket.h>
#else
#include <winsock2.h>
#endif
#include "retroshare/rspeers.h"
class p3LinkMgr;

View File

@ -26,7 +26,14 @@
#include "ui_ServerPage.h"
#include "RsAutoUpdatePage.h"
#include <inttypes.h>
#include <sys/socket.h>
/* get OS-specific definitions for:
* struct sockaddr_storage
*/
#ifndef WINDOWS_SYS
#include <sys/socket.h>
#else
#include <winsock2.h>
#endif
class QNetworkReply;
class QNetworkAccessManager;

View File

@ -24,7 +24,14 @@
#include <QString>
#include <inttypes.h>
#include <sys/socket.h>
/* get OS-specific definitions for:
* struct sockaddr_storage
*/
#ifndef WINDOWS_SYS
#include <sys/socket.h>
#else
#include <winsock2.h>
#endif
class RsNetUtil
{