diff --git a/src/include/os/solaris/osiSock.h b/src/include/os/solaris/osiSock.h index d14bfc0a7..f3679b6e8 100644 --- a/src/include/os/solaris/osiSock.h +++ b/src/include/os/solaris/osiSock.h @@ -58,10 +58,10 @@ typedef int SOCKET; #define socket_ioctl(A,B,C) ioctl(A,B,C) typedef int osiSockIoctl_t; -#if SOLARIS <= 6 - typedef int osiSocklen_t; -#else +#if SOLARIS > 6 || defined ( _SOCKLEN_T ) typedef uint32_t osiSocklen_t; +#else + typedef int osiSocklen_t; #endif #define FD_IN_FDSET(FD) ((FD)=0)