Fix build on illumos.

This commit is contained in:
Ante Vojvodic 2014-10-06 18:38:17 +02:00
parent bcd038dd93
commit 165d10de0f
2 changed files with 13 additions and 1 deletions

View File

@ -68,6 +68,18 @@ echo "nanosleep() required for timing operations."
exit 1
])
# On illumos we need -lsocket
AC_SEARCH_LIBS(socket, [socket], [], [
echo "socket()"
exit 1
])
# On illumos inet_ntop in in -lnsl
AC_SEARCH_LIBS(inet_ntop, [nsl], [], [
echo "inet_ntop()"
exit 1
])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

View File

@ -55,7 +55,7 @@
# include <sys/endian.h>
#elif defined(__SunOS)
#elif defined(__SunOS) || defined(__sun)
# include <sys/types.h>
# include <netinet/in.h>