From: Ronnie Sahlberg Date: Thu, 1 Sep 2011 09:48:42 +0000 (+1000) Subject: add support for opensolaris X-Git-Tag: upstream/1.9.6^2~330 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=647d2ea11cccea1e96629142abbe25de8ef1c7b5;p=deb_libnfs.git add support for opensolaris --- diff --git a/README b/README index cab6aa6..cd1600f 100644 --- a/README +++ b/README @@ -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 diff --git a/configure.ac b/configure.ac index a569f70..1b21947 100644 --- a/configure.ac +++ b/configure.ac @@ -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])]) diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 5d46e70..510772f 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -34,6 +34,9 @@ #include #include #include +#ifdef HAVE_SYS_SOCKIO_H +#include +#endif #include "libnfs.h" #include "libnfs-raw.h" #include "libnfs-raw-mount.h" diff --git a/lib/socket.c b/lib/socket.c index 503935c..e96636a 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -31,6 +31,9 @@ #ifdef HAVE_SYS_FILIO_H #include #endif +#ifdef HAVE_SYS_SOCKIO_H +#include +#endif #include #include #include