diff --git a/configure.ac b/configure.ac index 3f7f413..37b1e2b 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/portable_endian.h b/src/portable_endian.h index 520c79a..2f4afcb 100644 --- a/src/portable_endian.h +++ b/src/portable_endian.h @@ -55,7 +55,7 @@ # include -#elif defined(__SunOS) +#elif defined(__SunOS) || defined(__sun) # include # include