Merge pull request #211 from atcorner/illumos

Fix build on illumos.
This commit is contained in:
Bruce A. Mah 2014-10-16 11:13:47 -07:00
commit c5cf8972a0
2 changed files with 13 additions and 1 deletions

View File

@ -68,6 +68,18 @@ echo "nanosleep() required for timing operations."
exit 1 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. # Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST

View File

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