From bf231bf86cb3e1afccd2f2aa33fd0bd5df828744 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 14 Jul 2011 14:16:32 +0000 Subject: [PATCH] apply patch to fix build on GNU hurd --- include/libtorrent/config.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index da5766af9..49cce243f 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -213,6 +213,13 @@ POSSIBILITY OF SUCH DAMAGE. # define TORRENT_EXPORT __declspec(dllimport) # endif #endif + +// ==== GNU/Hurd === +#elif defined __GNU__ +#define TORRENT_HURD +#define TORRENT_USE_IFADDRS 1 +#define TORRENT_USE_IFCONF 1 + #else #warning unknown OS, assuming BSD #define TORRENT_BSD @@ -401,7 +408,7 @@ inline int snprintf(char* buf, int len, char const* fmt, ...) && !defined TORRENT_USE_ECLOCK \ && !defined TORRENT_USE_SYSTEM_TIME -#if defined(__MACH__) +#if defined __APPLE__ && defined __MACH__ #define TORRENT_USE_ABSOLUTE_TIME 1 #elif defined(_WIN32) || defined TORRENT_MINGW #define TORRENT_USE_QUERY_PERFORMANCE_TIMER 1