add support for opensolaris
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 1 Sep 2011 09:48:42 +0000 (19:48 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 1 Sep 2011 09:48:42 +0000 (19:48 +1000)
README
configure.ac
lib/libnfs-sync.c
lib/socket.c

diff --git a/README b/README
index cab6aa646a563dd53c50120bdd4cf549bc067721..cd1600f94d35ce7fff726ab540a1cda365bd437d 100644 (file)
--- 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
index a569f7016d914ac7839d69a0f61a138c0e0e1c38..1b21947fcd9ab8266bdc9b1914ca36dab854d24f 100644 (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])])
index 5d46e70b935d445166f4c2d8d7fed64f307c22fa..510772fa1efe6f7e889ac7af2e7b1277157475a7 100644 (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"
index 503935c0a059e4dfd2da33eb356b3628f484b4e5..e96636ae7fa4198774ee14e5b2ac8c4e53d703b5 100644 (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>