Solaris needs -lsocket and -lnsl and does not support gethostbyname2()

With these changes we build and work on solaris
This commit is contained in:
Ronnie Sahlberg
2011-01-03 10:57:35 +11:00
parent e7c24af75e
commit adfb7326e3
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -15,9 +15,13 @@ fi
case `uname` in
Linux*)
AC_DEFINE(HAVE_GETHOSTBYNAME2,1,[Whether we have gethostbyname2 or not])
;;
AIX*)
;;
SunOS)
LIBS="$LIBS -lsocket -lnsl"
;;
*)
;;
esac