apply patch to fix build on GNU hurd

This commit is contained in:
Arvid Norberg 2011-07-14 14:16:32 +00:00
parent 069b022c6d
commit bf231bf86c
1 changed files with 8 additions and 1 deletions

View File

@ -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