Commit 69281b35 authored by Apostolos Syropoulos's avatar Apostolos Syropoulos Committed by Youness Alaoui

Fix support for solaris

parent 14f7accd
...@@ -42,6 +42,10 @@ ...@@ -42,6 +42,10 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#ifdef __sun
#include <sys/sockio.h>
#endif
#ifdef HAVE_GETIFADDRS #ifdef HAVE_GETIFADDRS
#include <ifaddrs.h> #include <ifaddrs.h>
#endif #endif
......
...@@ -154,6 +154,14 @@ AS_IF([test "${enable_coverage}" != "no"], [ ...@@ -154,6 +154,14 @@ AS_IF([test "${enable_coverage}" != "no"], [
]) ])
AC_SUBST(CCACHE_DISABLE) AC_SUBST(CCACHE_DISABLE)
case $host_os in
solaris*)
LDFLAGS="$LDFLAGS -lsocket -lnls"
;;
*)
;;
esac
# check for gtk-doc # check for gtk-doc
GTK_DOC_CHECK(1.9) GTK_DOC_CHECK(1.9)
AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_MACRO_DIR(m4)
......
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef __sun
#define _XPG4_2 1
#endif
#ifndef _WIN32 #ifndef _WIN32
#include <stdio.h> #include <stdio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment