From eb06445b68534c827944fe5a7e741dd15f441cc7 Mon Sep 17 00:00:00 2001 From: Steven Kou Date: Mon, 28 Dec 2015 00:20:46 +0000 Subject: Patched configure.ac to search for socket under network. diff --git a/configure.ac b/configure.ac index 223b883..3c279e7 100644 --- a/configure.ac +++ b/configure.ac @@ -164,10 +164,10 @@ AS_IF([test "x$enable_compile_warnings" = "xerror"],[ ]) # -# Fixes for Solaris +# Fixes for Solaris and Haiku # AC_SEARCH_LIBS([inet_pton],[nsl]) -AC_SEARCH_LIBS([socket],[socket inet]) +AC_SEARCH_LIBS([socket],[socket inet network]) case $host in *-*-solaris* ) AC_DEFINE(_XOPEN_SOURCE, 600, Needed to get declarations for msg_control and msg_controllen on Solaris) -- 2.2.2 From 1d53cba7655e887f810ef5c5faa5730321f10653 Mon Sep 17 00:00:00 2001 From: Steven Kou Date: Mon, 28 Dec 2015 00:24:06 +0000 Subject: Patched agent/interfaces.c to compile under Haiku. diff --git a/agent/interfaces.c b/agent/interfaces.c index 0fa2fd7..0fe034f 100644 --- a/agent/interfaces.c +++ b/agent/interfaces.c @@ -46,7 +46,7 @@ #include "interfaces.h" #include "agent-priv.h" -#ifdef G_OS_UNIX +#if defined(G_OS_UNIX) || defined(G_OS_HAIKU) #include #include @@ -60,7 +60,7 @@ #include #include -#ifdef __sun +#if defined(__sun) || defined(G_OS_HAIKU) #include #endif @@ -73,8 +73,8 @@ #endif /* G_OS_UNIX */ -#if (defined(G_OS_UNIX) && defined(HAVE_GETIFADDRS)) || defined(G_OS_WIN32) -/* Works on both UNIX and Windows. Magic! */ +#if ((defined(G_OS_UNIX) || defined(G_OS_HAIKU)) && defined(HAVE_GETIFADDRS)) || defined(G_OS_WIN32) +/* Works on both UNIX/Haiku and Windows. Magic! */ static gchar * sockaddr_to_string (const struct sockaddr *addr) { @@ -97,7 +97,7 @@ sockaddr_to_string (const struct sockaddr *addr) } #endif -#ifdef G_OS_UNIX +#if defined(G_OS_UNIX) || defined(G_OS_HAIKU) #ifdef HAVE_GETIFADDRS -- 2.2.2