From 941c9d0fef96e97eed30d44a6e86eb1c3ba41ce2 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 20 May 2014 16:30:21 +0000
Subject: haiku patch


diff --git a/configure.ac b/configure.ac
index ee9b93d..39114cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -151,7 +151,7 @@ else
 fi
 
 # Checks for libraries.
-AC_SEARCH_LIBS([recvfrom], [socket])
+AC_SEARCH_LIBS([recvfrom], [socket network])
 AC_CHECK_FUNC([log], [], [AC_CHECK_LIB([m],[log])])
 AC_CHECK_FUNCS([getifaddrs])
 
-- 
2.30.0


From 5457650fef2a4da53054b6411f2bbae68872834b Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 20 May 2014 16:51:04 +0000
Subject: check getifaddrs


diff --git a/lo/lo_cpp.h b/lo/lo_cpp.h
index e3044cb..4acd9a8 100644
--- a/lo/lo_cpp.h
+++ b/lo/lo_cpp.h
@@ -284,11 +284,19 @@ namespace lo {
             return result;
         }
 
+#ifdef HAVE_GETIFADDRS
         std::string iface() const
           { LO_CHECK_BEFORE; auto s(lo_address_get_iface(address)); return std::string(s?s:""); }
 
         void set_iface(const string_type &iface, const string_type &ip)
           { LO_CHECK_BEFORE; lo_address_set_iface(address, iface, ip); }
+#else
+        std::string iface() const
+          { return std::string(""); }
+
+        void set_iface(const string_type &iface, const string_type &ip)
+          { }
+#endif
 
         int set_tcp_nodelay(int enable)
           { LO_CHECK_BEFORE; return lo_address_set_tcp_nodelay(address, enable); }
-- 
2.30.0

