From 647d2ea11cccea1e96629142abbe25de8ef1c7b5 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 1 Sep 2011 19:48:42 +1000 Subject: [PATCH] add support for opensolaris --- README | 1 + configure.ac | 1 + lib/libnfs-sync.c | 3 +++ lib/socket.c | 3 +++ 4 files changed, 8 insertions(+) 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 -- 2.34.1