From 28272338805f57894c8fc14210fed885076a0f26 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 8 Nov 2016 19:47:17 +0100 Subject: [PATCH] Fix windows Compil with sys/socket.h --- libretroshare/src/rsserver/p3peers.h | 10 +++++++++- retroshare-gui/src/gui/settings/ServerPage.h | 9 ++++++++- retroshare-gui/src/util/RsNetUtil.h | 9 ++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/rsserver/p3peers.h b/libretroshare/src/rsserver/p3peers.h index 9bdf4283e..889715aff 100644 --- a/libretroshare/src/rsserver/p3peers.h +++ b/libretroshare/src/rsserver/p3peers.h @@ -26,7 +26,15 @@ * */ -#include +/* get OS-specific definitions for: + * struct sockaddr_storage + */ +#ifndef WINDOWS_SYS + #include +#else + #include +#endif + #include "retroshare/rspeers.h" class p3LinkMgr; diff --git a/retroshare-gui/src/gui/settings/ServerPage.h b/retroshare-gui/src/gui/settings/ServerPage.h index afd7809fc..4561cd7ca 100755 --- a/retroshare-gui/src/gui/settings/ServerPage.h +++ b/retroshare-gui/src/gui/settings/ServerPage.h @@ -26,7 +26,14 @@ #include "ui_ServerPage.h" #include "RsAutoUpdatePage.h" #include -#include +/* get OS-specific definitions for: + * struct sockaddr_storage + */ +#ifndef WINDOWS_SYS + #include +#else + #include +#endif class QNetworkReply; class QNetworkAccessManager; diff --git a/retroshare-gui/src/util/RsNetUtil.h b/retroshare-gui/src/util/RsNetUtil.h index 8fa897425..9a9551d14 100644 --- a/retroshare-gui/src/util/RsNetUtil.h +++ b/retroshare-gui/src/util/RsNetUtil.h @@ -24,7 +24,14 @@ #include #include -#include +/* get OS-specific definitions for: + * struct sockaddr_storage + */ +#ifndef WINDOWS_SYS + #include +#else + #include +#endif class RsNetUtil {