add support for opensolaris

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2011-09-01 19:48:42 +10:00
parent 93e9306f80
commit 647d2ea11c
4 changed files with 8 additions and 0 deletions

1
README
View File

@ -44,6 +44,7 @@ Cygwin: - tested under 64bit win2k8.
MacOSX: - tested with SDK 10.4 (under Snow Leopard) - should also work with later SDKs and 64Bit
iOS: - tested with iOS SDK 4.2 - running on iOS 4.3.x
FreeBSD:- tested with 8.2
OpenSolaris
Cygwin

View File

@ -49,6 +49,7 @@ case $host in
;;
*solaris*)
AC_CHECK_HEADERS([sys/filio.h])
AC_CHECK_HEADERS([sys/sockio.h])
if test x$ENABLE_EXAMPLES = xyes; then
AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])])
AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])])

View File

@ -34,6 +34,9 @@
#include <sys/socket.h>
#include <net/if.h>
#include <netdb.h>
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -31,6 +31,9 @@
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>