diff --git a/src/libbitdht.pro b/src/libbitdht.pro index 80919c1..a525159 100644 --- a/src/libbitdht.pro +++ b/src/libbitdht.pro @@ -104,6 +104,12 @@ freebsd-* { openbsd-* { } +################################# Haiku ########################################## + +haiku-* { + DESTDIR = lib +} + ################################### COMMON stuff ################################## ################################### COMMON stuff ################################## diff --git a/src/udp/udplayer.cc b/src/udp/udplayer.cc index ddf0258..4a37abf 100644 --- a/src/udp/udplayer.cc +++ b/src/udp/udplayer.cc @@ -32,6 +32,7 @@ #include #include #include +#include /*** * #define UDP_ENABLE_BROADCAST 1 diff --git a/src/util/bdrandom.cc b/src/util/bdrandom.cc index 3d2bc6a..6288f86 100644 --- a/src/util/bdrandom.cc +++ b/src/util/bdrandom.cc @@ -13,7 +13,7 @@ static bool auto_seed = bdRandom::seed( (time(NULL) + ((uint32_t) pthread_self() #else #ifdef __APPLE__ static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_mach_thread_np(pthread_self())*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ; - #elif defined(__FreeBSD__) + #elif defined(__FreeBSD__) || (__HAIKU__) // since this is completely insecure anyway, just kludge for now static bool auto_seed = bdRandom::seed(time(NULL)); #elif defined(__OpenBSD__)