From d206a22e8a8764c209aa086bdd6a6ff2d5647f39 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 9 Jun 2015 15:21:49 +0200
Subject: Haiku fixes.


diff --git a/include/network.h b/include/network.h
index 5282d85..b098d8b 100644
--- a/include/network.h
+++ b/include/network.h
@@ -64,7 +64,7 @@
 #  define AddrLen		unsigned int
 /* setsockopt incorrectly prototypes the 4th arg without const. */
 #  define SSOType		void*
-#elif defined(BSD) || defined(sun) || defined(__GLIBC__)
+#elif defined(BSD) || defined(sun) || defined(__GLIBC__) || defined(__HAIKU__)
 #  define AddrLen		socklen_t
 #elif defined (__APPLE__)
 #  include <AvailabilityMacros.h>
diff --git a/src/common/TimeKeeper.cxx b/src/common/TimeKeeper.cxx
index a31c868..32caec3 100644
--- a/src/common/TimeKeeper.cxx
+++ b/src/common/TimeKeeper.cxx
@@ -20,7 +20,7 @@
 #ifdef HAVE_UNISTD_H
 #  include <unistd.h>
 #endif
-#ifdef __BEOS__
+#if defined(__BEOS__)||defined(__HAIKU__)
 #  include <OS.h>
 #endif
 #if !defined(_WIN32)
-- 
2.2.2

